lua-users home
lua-l archive

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


On Wednesday 16 February 2005 18:08, PA wrote:
> os.setlocale( "UTF-8", "collate" )

On Thursday 17 February 2005 12:37, Klaus Ripke wrote:
> > os.setlocale( "UTF-8", "collate" )
> this kind of works,

oops -- sorry, of course this does NOT work.
UTF-8 is a ctype, not a collation :)

But you can have a "collate" of "de_phonebook" with UTF-8
and yes, it's dead slow.

c.f.
http://oss.software.ibm.com/icu/charts/collation/ ,
http://www.unicode.org/charts/collation/ and
http://www.unicode.org/unicode/reports/tr10/tr10-11.html#Default_Unicode_Collation_Element_Table