From 4a10c7fec7babe4b74d070c1d5ff575ca8abe31b Mon Sep 17 00:00:00 2001 From: Ulrich Drepper Date: Thu, 4 Apr 2002 05:10:14 +0000 Subject: Update. 2002-04-03 Ulrich Drepper * locale/programs/charmap.c (charmap_read): If the charmap doesn't define a code_set_name provide one based on the filename. * malloc/hooks.c: Define weak_variable correctly for _LIBC. 2001-12-28 Andreas Jaeger * time/mktime.c (__mktime_internal): Check for year < 70 [PR libc/2738]. * sysdeps/generic/w_lgamma.c: Initialized local_signgam. * sysdeps/generic/w_lgammaf.c: Likewise. * sysdeps/generic/w_lgammal.c: Likewise [PR libc/2854]. * debug/catchsegv.sh (exval): Quote [ in pattern [PR libc/2902]. Adjust for new output format of the backtrace functions. * misc/syslog.c (vsyslog): Only use cleanup handler if _LIBC_REENTRANT is defined [PR libc/2924]. * sysdeps/s390/s390-64/bits/byteswap.h: Likewise [PR libc/2757]. --- locale/programs/charmap.c | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'locale') 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, -- cgit 1.4.1