Commit 67c4cb1f authored by Martin v. Löwis's avatar Martin v. Löwis

Disable big charsets in UCS-4 builds. Works around #599377.

Will backport to 2.2
parent eb42b026
...@@ -188,6 +188,9 @@ def _optimize_charset(charset, fixup): ...@@ -188,6 +188,9 @@ def _optimize_charset(charset, fixup):
# XXX: could append to charmap tail # XXX: could append to charmap tail
return charset # cannot compress return charset # cannot compress
except IndexError: except IndexError:
if sys.maxunicode != 65535:
# XXX: big charsets don't work in UCS-4 builds
return charset
# character set contains unicode characters # character set contains unicode characters
return _optimize_unicode(charset, fixup) return _optimize_unicode(charset, fixup)
# compress character map # compress character map
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment