]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
Fix test_sys for FreeBSD, Solaris and Mac OS X
authorVictor Stinner <victor.stinner@haypocalc.com>
Tue, 24 Aug 2010 23:05:51 +0000 (23:05 +0000)
committerVictor Stinner <victor.stinner@haypocalc.com>
Tue, 24 Aug 2010 23:05:51 +0000 (23:05 +0000)
commitebe53a23c9edc8f01fa261f9ea8e358b1ad481a2
tree691137c8a8ca89a5e12c519490fc75be22da0eca
parent8515eaefda6348a72464805ff8d07041d16ab97d
Fix test_sys for FreeBSD, Solaris and Mac OS X

_Py_char2wchar() (mbctowcs) decodes b'\xff' to '\xff' on FreeBSD, Solaris and
Mac OS X, even if the locale is C (and the locale encoding is ASCII). Patch
test_undecodable_code() to support this output and document the two different
kinds of outputs.
Lib/test/test_sys.py