lua-users home
lua-l archive

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


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