Author skrah
Recipients nadeem.vawda, python-dev, skrah
Date 2012-02-26.15:57:07
SpamBayes Score 0.000157015
Marked as misclassified No
Message-id <1330271828.64.0.672152945175.issue14113@psf.upfronthosting.co.za>
In-reply-to
Content
It looks like test_locale from test_format.py changes the locale on Windows:

>>> import time                                                                                      >>> magic_date = (1999, 3, 17, 22, 44, 55, 2, 76, 0)                                                 >>> time.strftime("%c", magic_date)
'03/17/99 22:44:55'
>>> import locale
>>> locale.getdefaultlocale()
('en_US', 'cp1252')                                                                                  >>> time.strftime("%c", magic_date)                                                                  '03/17/99 22:44:55'
>>> oldloc = locale.setlocale(locale.LC_ALL, '')
>>> oldloc
'English_United States.1252'
>>> time.strftime("%c", magic_date)                                                                  '3/17/1999 10:44:55 PM'
>>> locale.setlocale(locale.LC_ALL, oldloc)
'English_United States.1252'
>>> time.strftime("%c", magic_date)                                                                  '3/17/1999 10:44:55 PM'
History
Date User Action Args
2012-02-26 15:57:08skrahsetrecipients: + skrah, nadeem.vawda, python-dev
2012-02-26 15:57:08skrahsetmessageid: <1330271828.64.0.672152945175.issue14113@psf.upfronthosting.co.za>
2012-02-26 15:57:08skrahlinkissue14113 messages
2012-02-26 15:57:07skrahcreate