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

Will backport to 2.2
This commit is contained in:
Martin v. Löwis 2002-09-26 16:39:20 +00:00
parent eb42b026db
commit 67c4cb1f13
1 changed files with 3 additions and 0 deletions

View File

@ -188,6 +188,9 @@ def _optimize_charset(charset, fixup):
# XXX: could append to charmap tail
return charset # cannot compress
except IndexError:
if sys.maxunicode != 65535:
# XXX: big charsets don't work in UCS-4 builds
return charset
# character set contains unicode characters
return _optimize_unicode(charset, fixup)
# compress character map