Message90733
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 |
|
Date |
User |
Action |
Args |
2009-07-20 16:43:42 | PeterL | set | recipients:
+ PeterL |
2009-07-20 16:43:42 | PeterL | set | messageid: <1248108222.18.0.565207839087.issue6525@psf.upfronthosting.co.za> |
2009-07-20 16:43:40 | PeterL | link | issue6525 messages |
2009-07-20 16:43:40 | PeterL | create | |
|