New submission from Peter Landgren <peter.tal...@telia.com>: 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 ---------- components: Extension Modules messages: 90733 nosy: PeterL severity: normal status: open title: Problem with string.lowercase in Windows XP type: crash versions: Python 2.5 _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue6525> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com