[Python-bugs-list] [Bug #117524] The unicodedata db does not know about the special ranges.

noreply@sourceforge.net noreply@sourceforge.net
Fri, 3 Nov 2000 12:24:12 -0800

Bug #117524, was updated on 2000-Oct-23 13:06
Here is a current snapshot of the bug.

Project: Python
Category: Core
Status: Closed
Resolution: Fixed
Bug Group: None
Priority: 6
Summary: The unicodedata db does not know about the special ranges.

Details: There seems to a bug in the unicodedata. The special ranges described under "Field Formats" are not handled correctly.


The two characters should have identical properties:

Python 2.0 (#8, Oct 16 2000, 17:27:58) [MSC 32 bit (Intel)] on win32
Type "copyright", "credits" or "license" for more information.
>>> import unicodedata
>>> unicodedata.category(u"\u3400")
>>> unicodedata.category(u"\u3401")
>>> u"\u3400".isalpha()
>>> u"\u3401".isalpha()


Date: 2000-Oct-26 09:02
By: lemburg

Looks like we'll have to add a few special if()s to the various APIs.

I hadn't realized that the Unicode database defines properties for
char points which do not appear in the listed UnicodeData.txt file...
one little sentence in the webpage you mention makes the difference - sigh.


Date: 2000-Nov-02 14:57
By: none

Forget about the if statements -- the compression
method used for the unicode tables doesn't really
care if you have lots of undefined character entries,
or lots of character entries all having the same data.

Or to put it another way, I just added 38642 new chars
to the database, and it's still exactly the same size
as in 2.0.

Patch coming later.


For detailed info, follow this link: