summaryrefslogtreecommitdiffstats
path: root/Lib/test/support.py
diff options
context:
space:
mode:
authorVictor Stinner <victor.stinner@haypocalc.com>2010-09-10 11:19:59 (GMT)
committerVictor Stinner <victor.stinner@haypocalc.com>2010-09-10 11:19:59 (GMT)
commit8ce7df67de0e4eedbd57a16bff384bb3c6faf2de (patch)
tree71ea29b10064b92e3596022f780d711ebd3c9fa8 /Lib/test/support.py
parent2314fc729b7192a041ae7630febdc376519b8b9a (diff)
downloadcpython-8ce7df67de0e4eedbd57a16bff384bb3c6faf2de.zip
cpython-8ce7df67de0e4eedbd57a16bff384bb3c6faf2de.tar.gz
cpython-8ce7df67de0e4eedbd57a16bff384bb3c6faf2de.tar.bz2
Issue #9819: fix TESTFN_UNENCODABLE for japanese code page
Diffstat (limited to 'Lib/test/support.py')
-rw-r--r--Lib/test/support.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/Lib/test/support.py b/Lib/test/support.py
index bff4637..df3e493 100644
--- a/Lib/test/support.py
+++ b/Lib/test/support.py
@@ -394,8 +394,9 @@ TESTFN_UNENCODABLE = None
if os.name in ('nt', 'ce'):
# skip win32s (0) or Windows 9x/ME (1)
if sys.getwindowsversion().platform >= 2:
- # Japanese characters (I think - from bug 846133)
- TESTFN_UNENCODABLE = TESTFN + "-\u5171\u6709\u3055\u308c\u308b"
+ # Different kinds of characters from various languages to minimize the
+ # probability that the whole name is encodable to MBCS (issue #9819)
+ TESTFN_UNENCODABLE = TESTFN + "-\u5171\u0141\u2661\u0363\uDC80"
try:
TESTFN_UNENCODABLE.encode(TESTFN_ENCODING)
except UnicodeEncodeError: