Hirokazu Yamamoto <ocean-c...@m2.ccsnet.ne.jp> added the comment: Did you build python from source? Or did you download official binary distribution? If latter, Python2.5 was built with VC7, and Python2.6 is built with VC9. Probably difference of behavior comes from difference of version of msvcrt.
I ran following codes from my python2.6 built from source with VC6, and I succeeded to set locale. Python 2.6.2c1 (release26-maint, Apr 11 2009, 07:01:50) [MSC v.1200 32 bit (Inte l)] on win32 Type "help", "copyright", "credits" or "license" for more information. >>> import locale >>> locale.setlocale(4, "ja") 'Japanese_Japan.932' >>> locale.setlocale(4, "fr") 'French_France.1252' ---------- assignee: loewis -> nosy: +ocean-city _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue5948> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com