[Python-Dev] logging module broken because of locale (original) (raw)
James Y Knight foom at fuhm.net
Tue Jul 18 20:01:09 CEST 2006
- Previous message: [Python-Dev] logging module broken because of locale
- Next message: [Python-Dev] logging module broken because of locale
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
On Jul 18, 2006, at 1:54 PM, Martin v. Löwis wrote:
Mihai Ibanescu wrote:
To follow up on my own email: it looks like, even though in some locale "INFO".lower() != "info"
u"INFO".lower() == "info" (at least in the Turkish locale). Is that guaranteed, at least for now (for the current versions of python)? It's guaranteed for now; unicode.lower is not locale-aware.
That seems backwards of how it should be ideally: the byte-string
upper and lower should always do ascii uppering-and-lowering, and the
unicode ones should do it according to locale. Perhaps that can be
cleaned up in py3k?
James
- Previous message: [Python-Dev] logging module broken because of locale
- Next message: [Python-Dev] logging module broken because of locale
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]