summaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
Diffstat (limited to 'tools')
-rw-r--r--tools/gen-script-for-lang.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/tools/gen-script-for-lang.c b/tools/gen-script-for-lang.c
index 00d847aa..6d866f64 100644
--- a/tools/gen-script-for-lang.c
+++ b/tools/gen-script-for-lang.c
@@ -136,6 +136,13 @@ scripts_for_line (const char *base_dir,
script != PANGO_SCRIPT_INHERITED)
{
int j;
+
+ if (script == PANGO_SCRIPT_UNKNOWN)
+ {
+ g_message ("Script unknown for U+%04X", ch);
+ continue;
+ }
+
for (j = 0; j < MAX_SCRIPTS; j++)
{
if (info->scripts[j] == script)