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

Re: [I18n-sig] Perhaps the locale should matter?



Guido van Rossum <guido@xxxxxxxxxx> writes:

[Problem: implicit conversion from non-Unicode strings to Unicode, so
that existing Python code doesn't break when fed with both Unicode and
non-Unicode strings]

> Problem: I have no idea how to go from the locale setting (a
> two-charater language abbreviation) to a specific character encoding
> -- but that might conceivably a fixed table.

I like this idea a lot.  There was some discussion on the Linux-UTF-8
list <linux-utf8@xxxxxxxxxxxx> on this topic (I'm Cc:ing them).
Current GNU libc development versions provide nl_langinfo() and
understand locale settings like "LANG=de_DE.UTF-8".  I don't know if
this convention is widely used, though.  If it isn't, there's probably
nothing else, so you could use it anyway. ;)
-
Linux-UTF8:   i18n of Linux on all levels
Archive:      http://mail.nl.linux.org/lists/