about summary refs log tree commit diff
path: root/locale
diff options
context:
space:
mode:
Diffstat (limited to 'locale')
-rw-r--r--locale/programs/charmap.c2
-rw-r--r--locale/programs/ld-ctype.c2
2 files changed, 3 insertions, 1 deletions
diff --git a/locale/programs/charmap.c b/locale/programs/charmap.c
index e11df1cf29..fd9cc357e3 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 a4dcd76807..2fbefd9395 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"));