diff options
Diffstat (limited to 'locale')
-rw-r--r-- | locale/programs/charmap.c | 2 | ||||
-rw-r--r-- | locale/programs/ld-ctype.c | 2 |
2 files changed, 3 insertions, 1 deletions
diff --git a/locale/programs/charmap.c b/locale/programs/charmap.c index e11df1c..fd9cc35 100644 --- a/locale/programs/charmap.c +++ b/locale/programs/charmap.c @@ -290,7 +290,7 @@ parse_charmap (const char *filename) switch (nowtok) { case tok_code_set_name: - if (arg->tok != tok_ident) + if (arg->tok != tok_ident && arg->tok != tok_string) { badarg: lr_error (cmfile, _("syntax error in prolog: %s"), diff --git a/locale/programs/ld-ctype.c b/locale/programs/ld-ctype.c index a4dcd76..2fbefd9 100644 --- a/locale/programs/ld-ctype.c +++ b/locale/programs/ld-ctype.c @@ -313,6 +313,8 @@ character %s'%s' in class `%s' must not be in class `%s'"), /* ... and now test <SP> as a special case. */ space_value = charset_find_value (&charset->char_table, "SP", 2); if ((wchar_t) space_value == ILLEGAL_CHAR_VALUE) + space_value = charset_find_value (&charset->char_table, "space", 5); + if ((wchar_t) space_value == ILLEGAL_CHAR_VALUE) { if (!be_quiet) error (0, 0, _("character <SP> not defined in character map")); |