[Date Prev][Date Next][Thread Prev][Thread Next]
- Subject: Re: Another mix of answers...
- From: Roberto Ierusalimschy <roberto@...>
- Date: Fri, 27 Jul 2001 14:24:50 -0300
> BTW, I expected format %q to quote also control characters, but they are
> kept as is. I suppose it is by design.
That was a somewhat selfish decision. When the locale is not set properly,
accented letters are classified as control characters. Portuguese uses lots
of accented letters, and many machines around here do not have proper
locale for Portuguese... As you said, it is easy to use gsub instead of
'%q' for particular requirements.