]> granicus.if.org Git - python/commit
test_main_invalid_unicode() of test_sys: print string as ascii
authorVictor Stinner <victor.stinner@haypocalc.com>
Fri, 20 Aug 2010 11:08:18 +0000 (11:08 +0000)
committerVictor Stinner <victor.stinner@haypocalc.com>
Fri, 20 Aug 2010 11:08:18 +0000 (11:08 +0000)
commite6376f8849175789c371f292f896ecdccb88b5b1
tree4f2405b8715f78432c2143641c4a472aed075a6b
parent89d8f82d01b7d0191c07d5553979ffe53d55cf6e
test_main_invalid_unicode() of test_sys: print string as ascii

There are buildbot failures on "x86 FreeBSD 3.x" and "sparc solaris10 gcc 3.x".
I suppose that _Py_char2wchar() doesn't fail even if the locale encoding is
unable to decode the byte string, because _Py_char2wchar() has a special mode
for platform without mbrtowc() (ISO C99) function.

Let's check my theory by avoid error on the Python print() instruction.
Lib/test/test_sys.py