summaryrefslogtreecommitdiffstats
path: root/util/unicode
diff options
context:
space:
mode:
Diffstat (limited to 'util/unicode')
-rw-r--r--util/unicode/main.cpp7
1 files changed, 2 insertions, 5 deletions
diff --git a/util/unicode/main.cpp b/util/unicode/main.cpp
index 4d43464455..e2596c799f 100644
--- a/util/unicode/main.cpp
+++ b/util/unicode/main.cpp
@@ -615,7 +615,7 @@ static void initCategoryMap()
{ QChar::Symbol_Currency, "Sc" },
{ QChar::Symbol_Modifier, "Sk" },
{ QChar::Symbol_Other, "So" },
- { QChar::NoCategory, 0 }
+ { QChar::Other_NotAssigned, 0 }
};
Cat *c = categories;
while (c->name) {
@@ -763,10 +763,7 @@ static void readUnicodeData()
}
UnicodeData data(codepoint);
- data.p.category = categoryMap.value(properties[UD_Category], QChar::NoCategory);
- if (data.p.category == QChar::NoCategory)
- qFatal("unassigned char category: %s", properties[UD_Category].constData());
-
+ data.p.category = categoryMap.value(properties[UD_Category], QChar::Other_NotAssigned);
data.p.combiningClass = properties[UD_CombiningClass].toInt();
if (!combiningClassUsage.contains(data.p.combiningClass))
combiningClassUsage[data.p.combiningClass] = 1;