mirror of
https://sourceware.org/git/glibc.git
synced 2025-01-05 17:11:06 +00:00
(charmap_read): If the charmap doesn't define a code_set_name provide one
based on the filename.
This commit is contained in:
parent
55e1a66ad8
commit
023272c726
@ -198,6 +198,11 @@ character map file `%s' not found"), filename));
|
|||||||
default character map file `%s' not found"), DEFAULT_CHARMAP));
|
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.
|
/* Test of ASCII compatibility of locale encoding.
|
||||||
|
|
||||||
Verify that the encoding to be used in a locale is ASCII compatible,
|
Verify that the encoding to be used in a locale is ASCII compatible,
|
||||||
|
Loading…
Reference in New Issue
Block a user