diff options
author | Ulrich Drepper <drepper@redhat.com> | 2001-04-11 01:07:57 +0000 |
---|---|---|
committer | Ulrich Drepper <drepper@redhat.com> | 2001-04-11 01:07:57 +0000 |
commit | 671ab00dcc3eaa263ab225ac26e7fc6b7677b3d0 (patch) | |
tree | 29e83c04cb40b5df0af1a438abd001f41055214a /locale/newlocale.c | |
parent | Update. (diff) | |
download | glibc-671ab00dcc3eaa263ab225ac26e7fc6b7677b3d0.tar.gz glibc-671ab00dcc3eaa263ab225ac26e7fc6b7677b3d0.tar.bz2 glibc-671ab00dcc3eaa263ab225ac26e7fc6b7677b3d0.zip |
Update.
* locale/tst-C-locale.c (run_test): Add tests for locale objects.
* locale/newlocale.c (__newlocale): Correct setting __ctype_b,
__ctype_tolower, and __ctype_toupper elements.
Diffstat (limited to 'locale/newlocale.c')
-rw-r--r-- | locale/newlocale.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/locale/newlocale.c b/locale/newlocale.c index 1f5b745bb0..423e137b62 100644 --- a/locale/newlocale.c +++ b/locale/newlocale.c @@ -173,11 +173,11 @@ __newlocale (int category_mask, const char *locale, __locale_t base) { union locale_data_value *ctypes = result_ptr->__locales[LC_CTYPE]->values; result_ptr->__ctype_b = (const unsigned short int *) - (ctypes[_NL_ITEM_INDEX (_NL_CTYPE_CLASS)].string); + ctypes[_NL_ITEM_INDEX (_NL_CTYPE_CLASS)].string + 128; result_ptr->__ctype_tolower = (const int *) - (ctypes[_NL_ITEM_INDEX (_NL_CTYPE_TOLOWER)].string); + ctypes[_NL_ITEM_INDEX (_NL_CTYPE_TOLOWER)].string + 128; result_ptr->__ctype_toupper = (const int *) - (ctypes[_NL_ITEM_INDEX (_NL_CTYPE_TOUPPER)].string); + ctypes[_NL_ITEM_INDEX (_NL_CTYPE_TOUPPER)].string + 128; } return result_ptr; |