From bece1bc4ec83cde611243c891d3a93b5e9bbcedd Mon Sep 17 00:00:00 2001 From: Ulrich Drepper Date: Sat, 20 Nov 1999 23:27:27 +0000 Subject: 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. --- wctype/wctrans.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'wctype') 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); } -- cgit 1.4.1