lua-users home
lua-l archive

Re: is string.gmatch(), string.upper() 7-bit ascii only?

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


> Well, at least on an Ubuntu 14.04 system it does not work. But I don't blame Lua if the underlying OS supplied toupper() C function doesn't do the job, of course:
> 
> $ sudo locale-gen de_CH
> Generating locales...
> de_CH.ISO-8859-1... done
> Generation complete.
> $ lua
> Lua 5.3.2 Copyright (C) 1994-2015 Lua.org, PUC-Rio
> > = os.setlocale('de_CH.ISO-8859-1')
> de_CH.ISO-8859-1
> > = string.upper('äöü')
> äöü
> >
> 
> (Expected is 'ÄÖÜ')
As far as I know, Ubuntu terminals (and pretty much everything else)
work with UTF-8. Try this:
$ lua
> #'äöü'
-- Roberto

AltStyle によって変換されたページ (->オリジナル) /