This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author PeterL
Recipients PeterL
Date 2009-07-20.16:43:40
SpamBayes Score 0.0052619926
Marked as misclassified No
Message-id <1248108222.18.0.565207839087.issue6525@psf.upfronthosting.co.za>
In-reply-to
Content
string.lowercase is changed after locale.setlocale(locale.LC_ALL,'') in
Windows XP but not in Linux.
This little test script on Windows XP and Linux explains the problem:

import locale
import string
print string.lowercase
print locale.setlocale(locale.LC_ALL,'C')
print string.lowercase
print locale.setlocale(locale.LC_ALL,'')
print string.lowercase

Result on Win XP with Python 2.5.1:
abcdefghijklmnopqrstuvwxyz
C
abcdefghijklmnopqrstuvwxyz
Swedish_Sweden.1252
abcdefghijklmnopqrstuvwxyzâܣ׬Á║▀ÓßÔÒõÕµþÞÚÛÙýݯ´­±‗¾¶§÷°¨·¹³²■

Result on Linux with Python 2.5.2:
abcdefghijklmnopqrstuvwxyz
C
abcdefghijklmnopqrstuvwxyz
sv_SE.UTF-8
abcdefghijklmnopqrstuvwxyz
History
Date User Action Args
2009-07-20 16:43:42PeterLsetrecipients: + PeterL
2009-07-20 16:43:42PeterLsetmessageid: <1248108222.18.0.565207839087.issue6525@psf.upfronthosting.co.za>
2009-07-20 16:43:40PeterLlinkissue6525 messages
2009-07-20 16:43:40PeterLcreate