aboutsummaryrefslogtreecommitdiff
path: root/wctype
diff options
context:
space:
mode:
authorUlrich Drepper <drepper@redhat.com>1999-11-20 23:27:27 +0000
committerUlrich Drepper <drepper@redhat.com>1999-11-20 23:27:27 +0000
commitbece1bc4ec83cde611243c891d3a93b5e9bbcedd (patch)
treeffcd1354bb31a945e59c29ac7dff19d50e1bfb49 /wctype
parent9e2b7438ecec43f3c6bd55326529bf06fc1aaeb8 (diff)
downloadglibc-bece1bc4ec83cde611243c891d3a93b5e9bbcedd.tar
glibc-bece1bc4ec83cde611243c891d3a93b5e9bbcedd.tar.gz
glibc-bece1bc4ec83cde611243c891d3a93b5e9bbcedd.tar.bz2
glibc-bece1bc4ec83cde611243c891d3a93b5e9bbcedd.zip
Update.
* wctype/wctrans.c (wctrans): Use correct base index to access extra mapping tables. * locale/loadlocale.c (_nl_load_locale): Use actual number of entries from file and not the fixed (minimal number from the langinfo.h list.
Diffstat (limited to 'wctype')
-rw-r--r--wctype/wctrans.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/wctype/wctrans.c b/wctype/wctrans.c
index 3c46131f24..a5b4a32aac 100644
--- a/wctype/wctrans.c
+++ b/wctype/wctrans.c
@@ -50,7 +50,7 @@ wctrans (const char *property)
return (wctrans_t) __ctype_tolower;
/* We have to search the table. */
- result = (int32_t *) _NL_CURRENT (LC_CTYPE, _NL_CTYPE_WIDTH + cnt - 2);
+ result = (int32_t *) _NL_CURRENT (LC_CTYPE, _NL_NUM_LC_CTYPE + cnt - 2);
return (wctrans_t) (result + 128);
}