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 ocean-city
Recipients Kerfred, asmodai, loewis, ocean-city
Date 2009-05-06.16:54:55
SpamBayes Score 6.4134493e-09
Marked as misclassified No
Message-id <1241628896.89.0.247707304137.issue5948@psf.upfronthosting.co.za>
In-reply-to
Content
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'
History
Date User Action Args
2009-05-06 16:54:57ocean-citysetrecipients: + ocean-city, loewis, asmodai, Kerfred
2009-05-06 16:54:56ocean-citysetmessageid: <1241628896.89.0.247707304137.issue5948@psf.upfronthosting.co.za>
2009-05-06 16:54:55ocean-citylinkissue5948 messages
2009-05-06 16:54:55ocean-citycreate