diff options
author | Ritt Konstantin <ritt.ks@gmail.com> | 2010-02-24 19:13:24 (GMT) |
---|---|---|
committer | Thiago Macieira <thiago.macieira@nokia.com> | 2010-03-05 15:58:07 (GMT) |
commit | 58ea5d52b4f30fc1d029db05b09b60fef49a6f2a (patch) | |
tree | 54cb30cb9776fd940f56a778f90943753f99016a /util/unicode | |
parent | 7706e9ba3807f9f31a9310f39f0c8b3007f7fb10 (diff) | |
download | Qt-58ea5d52b4f30fc1d029db05b09b60fef49a6f2a.zip Qt-58ea5d52b4f30fc1d029db05b09b60fef49a6f2a.tar.gz Qt-58ea5d52b4f30fc1d029db05b09b60fef49a6f2a.tar.bz2 |
Unicode character property 'General_Category=Cn' was erroneously ignored
causing two related bugs in QChar::category() and QChar::isPrint().
As described in tr44, 4.2.8 Default Values
General_Category character property should be setted to Cn
for all codepoints omitted in UCD.
Instead they was mapped to QChar::NoCategory (=0) which have no equivalent
in Unicode specs and as result was ignored in filtering by binary mask.
Merge-request: 480
Reviewed-by: Thiago Macieira <thiago.macieira@nokia.com>
Diffstat (limited to 'util/unicode')
-rw-r--r-- | util/unicode/main.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/util/unicode/main.cpp b/util/unicode/main.cpp index 14d8046..d7ee084 100644 --- a/util/unicode/main.cpp +++ b/util/unicode/main.cpp @@ -368,7 +368,7 @@ static int appendToSpecialCaseMap(const QList<int> &map) struct UnicodeData { UnicodeData(int codepoint = 0) { - p.category = QChar::NoCategory; + p.category = QChar::Other_NotAssigned; // Cn p.combiningClass = 0; p.direction = QChar::DirL; |