lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]


> 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. 

-- Roberto