Author msmhrt
Recipients msmhrt
Date 2012-10-25.11:56:50
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1351166210.69.0.0993824857313.issue16322@psf.upfronthosting.co.za>
In-reply-to
Content
OS: Windows 7 Starter Edition SP1 (32-bit) Japanese version
Python: 3.3.0 for Windows x86 (python-3.3.0.msi)

time.tzname on Python 3.3.0 for Windows is decoded by wrong encoding.

C:\Python33>python.exe
Python 3.3.0 (v3.3.0:bd8afb90ebf2, Sep 29 2012, 10:55:48) [MSC v.1600 32 bit (In
tel)] on win32
Type "help", "copyright", "credits" or "license" for more information.
>>> import time
>>> time.tzname[0]
'\x93\x8c\x8b\x9e (\x95W\x8f\x80\x8e\x9e)'
>>> time.tzname[0].encode('iso-8859-1').decode('mbcs')
'東京 (標準時)'
>>>

'東京 (標準時)' means 'Tokyo (Standard Time)' in Japanese.
time.tzname on Python 3.2.3 for Windows works correctly.

C:\Python32>python.exe
Python 3.2.3 (default, Apr 11 2012, 07:15:24) [MSC v.1500 32 bit (Intel)] on win
32
Type "help", "copyright", "credits" or "license" for more information.
>>> import time
>>> time.tzname[0]
'東京 (標準時)'
>>>
History
Date User Action Args
2012-10-25 11:56:50msmhrtsetrecipients: + msmhrt
2012-10-25 11:56:50msmhrtsetmessageid: <1351166210.69.0.0993824857313.issue16322@psf.upfronthosting.co.za>
2012-10-25 11:56:50msmhrtlinkissue16322 messages
2012-10-25 11:56:50msmhrtcreate