(charmap_read): If the charmap doesn't define a code_set_name provide one

based on the filename.
This commit is contained in:
Ulrich Drepper 2002-04-04 05:08:56 +00:00
parent 55e1a66ad8
commit 023272c726

View File

@ -198,6 +198,11 @@ character map file `%s' not found"), filename));
default character map file `%s' not found"), DEFAULT_CHARMAP));
}
if (result->code_set_name == NULL)
/* The input file does not specify a code set name. This
shouldn't happen but we should cope with it. */
result->code_set_name = basename (filename);
/* Test of ASCII compatibility of locale encoding.
Verify that the encoding to be used in a locale is ASCII compatible,