[New-bugs-announce] [issue6183] test_time fails on VC6

Hirokazu Yamamoto report at bugs.python.org
Wed Jun 3 04:19:30 CEST 2009


New submission from Hirokazu Yamamoto <ocean-city at m2.ccsnet.ne.jp>:

test_time fails on VC6 with following message.

======================================================================
FAIL: test_strptime (__main__.TimeTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "test_time.py", line 246, in <module>
    test_main()
  File "test_time.py", line 243, in test_main
    support.run_unittest(TimeTestCase, TestLocale)
  File "e:\python-dev\py3k\lib\test\support.py", line 879, in run_unittest
    _run_suite(suite)
  File "e:\python-dev\py3k\lib\test\support.py", line 854, in _run_suite
    result = runner.run(suite)
  File "e:\python-dev\py3k\lib\unittest.py", line 1490, in run
    result.printErrors()
  File "e:\python-dev\py3k\lib\unittest.py", line 1451, in printErrors
    self.printErrorList('FAIL', self.failures)
  File "e:\python-dev\py3k\lib\unittest.py", line 1458, in printErrorList
    self.stream.writeln("%s" % err)
  File "e:\python-dev\py3k\lib\unittest.py", line 1367, in writeln
    self.write(arg)
UnicodeEncodeError: 'cp932' codec can't encode character '\x93' in
position 453:
 illegal multibyte sequence


Here is quotation from 
http://msdn.microsoft.com/en-us/library/fe06s4ak%28VS.71%29.aspx

> Note   Before this version of Visual C++, the documentation described
> the format parameter of wcsftime as having the datatype const wchar_t
> *, but the actual implementation of the format datatype was const
> char *. In this version, the implementation of the format datatype
> has been updated to reflect the previous and current documentation, 
> that is: const wchar_t *.


Can I apply attached patch? Thank you.

----------
components: Extension Modules
files: patch_for_under_71.patch
keywords: patch
messages: 88786
nosy: ocean-city
severity: normal
status: open
title: test_time fails on VC6
versions: Python 3.1
Added file: http://bugs.python.org/file14163/patch_for_under_71.patch

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue6183>
_______________________________________


More information about the New-bugs-announce mailing list