]> granicus.if.org Git - python/commitdiff
Issue #9819: fix TESTFN_UNENCODABLE for japanese code page
authorVictor Stinner <victor.stinner@haypocalc.com>
Fri, 10 Sep 2010 11:19:59 +0000 (11:19 +0000)
committerVictor Stinner <victor.stinner@haypocalc.com>
Fri, 10 Sep 2010 11:19:59 +0000 (11:19 +0000)
Lib/test/support.py

index bff4637230f3701c01fd226d5898801e00e7fec3..df3e493cc71d141d293f71c601fed3955bc8db28 100644 (file)
@@ -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: