[Python-Dev] logging module broken because of locale

"Martin v. Löwis" martin at v.loewis.de
Tue Jul 18 21:32:39 CEST 2006


M.-A. Lemburg wrote:
> The Unicode database OTOH *defines* the upper/lower case mapping in
> a locale independent way, so the mappings are guaranteed
> to always produce the same results on all platforms.

Actually, that isn't the full truth; see UAX#21, which is now official
part of Unicode 4. It specifies two kinds of case conversion:
simple case conversion, and full case conversion. Python only supports
simple case conversion at the moment. Full case conversion is context
(locale) dependent, and must take into account SpecialCasing.txt.

Regards,
Martin


More information about the Python-Dev mailing list