aboutsummaryrefslogtreecommitdiff
path: root/wcsmbs
diff options
context:
space:
mode:
authorUlrich Drepper <drepper@redhat.com>1999-11-23 06:01:02 +0000
committerUlrich Drepper <drepper@redhat.com>1999-11-23 06:01:02 +0000
commite46309e103f0a7aa08f54eca387789e73afd15af (patch)
tree26bce942f71bab4a93c0154856cca809dc3d3b06 /wcsmbs
parent99296d9dee7857d29ed05882a5cf404f27ae17d4 (diff)
downloadglibc-e46309e103f0a7aa08f54eca387789e73afd15af.zip
glibc-e46309e103f0a7aa08f54eca387789e73afd15af.tar.gz
glibc-e46309e103f0a7aa08f54eca387789e73afd15af.tar.bz2
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.
Diffstat (limited to 'wcsmbs')
-rw-r--r--wcsmbs/wcsmbsload.c10
1 files changed, 2 insertions, 8 deletions
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. */