[pywin32-checkins] pywin32/win32/Lib win32timezone.py,1.27,1.28
OLD project page for the Python extensions for Windows
Brought to you by:
mhammond
From: Jason R. C. <ja...@us...> - 2009-03-25 00:29:56
|
Update of /cvsroot/pywin32/pywin32/win32/Lib In directory ddv4jf1.ch3.sourceforge.com:/tmp/cvs-serv1905 Modified Files: win32timezone.py Log Message: Fix for bug 2706383 including unit test to prevent it from recurring. Index: win32timezone.py =================================================================== RCS file: /cvsroot/pywin32/pywin32/win32/Lib/win32timezone.py,v retrieving revision 1.27 retrieving revision 1.28 diff -C2 -d -r1.27 -r1.28 *** win32timezone.py 8 Feb 2009 09:56:21 -0000 1.27 --- win32timezone.py 25 Mar 2009 00:29:43 -0000 1.28 *************** *** 146,149 **** --- 146,153 ---- >>> (not caps['DynamicTZSupport'] and not caps['MissingTZPatch']) == old_dates_wrong True + + This test helps ensure language support for unicode characters + >>> x = TIME_ZONE_INFORMATION(0, 'fran\xc3\xa7ais'.decode('utf-8')) + """ from __future__ import generators *************** *** 163,167 **** import operator import warnings - import pywintypes from itertools import count --- 167,170 ---- *************** *** 224,231 **** _fields_ = [ ('bias', int), ! ('standard_name', str), ('standard_start', SYSTEMTIME), ('standard_bias', int), ! ('daylight_name', str), ('daylight_start', SYSTEMTIME), ('daylight_bias', int), --- 227,234 ---- _fields_ = [ ('bias', int), ! ('standard_name', unicode), ('standard_start', SYSTEMTIME), ('standard_bias', int), ! ('daylight_name', unicode), ('daylight_start', SYSTEMTIME), ('daylight_bias', int), *************** *** 234,238 **** class DYNAMIC_TIME_ZONE_INFORMATION(_SimpleStruct): _fields_ = TIME_ZONE_INFORMATION._fields_ + [ ! ('key_name', str), ('dynamic_daylight_time_disabled', bool), ] --- 237,241 ---- class DYNAMIC_TIME_ZONE_INFORMATION(_SimpleStruct): _fields_ = TIME_ZONE_INFORMATION._fields_ + [ ! ('key_name', unicode), ('dynamic_daylight_time_disabled', bool), ] |