[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: accented characters in field names (once more)
- From: Mike Pall <mikelu-0611@...>
- Date: Sat, 25 Nov 2006 14:24:09 +0100
Hi,
Luiz Henrique de Figueiredo wrote:
> > $ export LUA_INIT='os.setlocale(os.getenv("LC_CTYPE"), "ctype")'
>
> I guess you'd have to support LC_ALL as well:
>
> os.setlocale(os.getenv("LC_CTYPE") or os.getenv("LC_ALL"), "ctype")
Oh, you're right. In fact libc already implements this (and more):
os.setlocale("", "ctype")
I suggest a hint about the use of the empty string in the docs
for os.setlocale.
Bye,
Mike