From e46309e103f0a7aa08f54eca387789e73afd15af Mon Sep 17 00:00:00 2001 From: Ulrich Drepper Date: Tue, 23 Nov 1999 06:01:02 +0000 Subject: [PATCH] Update. * wcsmbs/wcsmbsload.c (__wcsmbs_load_conv): Don't use the charset name from the locale name. Only use the value in the LC_CTYPE locale data file. --- ChangeLog | 4 ++++ localedata/ChangeLog | 6 ++++++ localedata/locales/ja_JP | 2 +- localedata/repertoiremaps/mnemonic.ja | 2 ++ wcsmbs/wcsmbsload.c | 10 ++-------- 5 files changed, 15 insertions(+), 9 deletions(-) diff --git a/ChangeLog b/ChangeLog index 40e9dc3..4046f78 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,9 @@ 1999-11-22 Ulrich Drepper + * wcsmbs/wcsmbsload.c (__wcsmbs_load_conv): Don't use the charset + name from the locale name. Only use the value in the LC_CTYPE + locale data file. + * locale/loadlocale.c (_nl_load_locale): Allow index of entry in file be equal to file size. diff --git a/localedata/ChangeLog b/localedata/ChangeLog index d02f77a..5959eac 100644 --- a/localedata/ChangeLog +++ b/localedata/ChangeLog @@ -1,3 +1,9 @@ +1999-11-22 Ulrich Drepper + + * locales/ja_JP [LC_CTYPE] (cntrl): Add PAD. + + * repertoiremaps/mnemonic.ja: Add DCS and APC definitions. + 1999-11-20 Ulrich Drepper * tst-trans.c: New file. diff --git a/localedata/locales/ja_JP b/localedata/locales/ja_JP index b16a503..18a4c46 100644 --- a/localedata/locales/ja_JP +++ b/localedata/locales/ja_JP @@ -39,7 +39,7 @@ cntrl ;;;;;/ ;;/ ;;;;;;;;;/ ;;;;;;;;;/ - ;;;;;;;;;/ + ;;;;;;;;;;/ ;;;;;;;;;;/ ;;;;;;;;;;/ ;;;;;;;;; diff --git a/localedata/repertoiremaps/mnemonic.ja b/localedata/repertoiremaps/mnemonic.ja index f7a631a..ae24168 100644 --- a/localedata/repertoiremaps/mnemonic.ja +++ b/localedata/repertoiremaps/mnemonic.ja @@ -233,6 +233,7 @@ escape_char / SINGLE-SHIFT TWO (SS2) SINGLE-SHIFT THREE (SS3) DEVICE CONTROL STRING (DCS) + DEVICE CONTROL STRING (DCS) PRIVATE USE ONE (PU1) PRIVATE USE ONE (PU2) SET TRANSMIT STATE (STS) @@ -248,6 +249,7 @@ escape_char / OPERATING SYSTEM COMMAND (OSC) PRIVACY MESSAGE (PM) APPLICATION PROGRAM COMMAND (APC) + APPLICATION PROGRAM COMMAND (APC) NO-BREAK SPACE INVERTED EXCLAMATION MARK CENT SIGN diff --git a/wcsmbs/wcsmbsload.c b/wcsmbs/wcsmbsload.c index bbac794..26633e0 100644 --- a/wcsmbs/wcsmbsload.c +++ b/wcsmbs/wcsmbsload.c @@ -194,14 +194,8 @@ __wcsmbs_load_conv (const struct locale_data *new_category) __gconv_close_transform (__wcsmbs_gconv_fcts.tomb, 1); __gconv_close_transform (__wcsmbs_gconv_fcts.towc, 1); - /* Get name of charset of the locale. We first examine - whether we have a character set mentioned in the locale - name. If this isn't the case we use the information from - the locale files. */ - charset_name = extract_charset_name (setlocale (LC_CTYPE, NULL)); - if (charset_name == NULL) - charset_name = - new_category->values[_NL_ITEM_INDEX(CODESET)].string; + /* Get name of charset of the locale. */ + charset_name = new_category->values[_NL_ITEM_INDEX(CODESET)].string; /* Normalize the name and add the slashes necessary for a complete lookup. */ -- 2.7.4