aboutsummaryrefslogtreecommitdiff
path: root/locale
diff options
context:
space:
mode:
Diffstat (limited to 'locale')
-rw-r--r--locale/programs/charmap.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/locale/programs/charmap.c b/locale/programs/charmap.c
index ee755ba50a..82d5fb349f 100644
--- a/locale/programs/charmap.c
+++ b/locale/programs/charmap.c
@@ -194,6 +194,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,