aboutsummaryrefslogtreecommitdiff
path: root/locale/newlocale.c
diff options
context:
space:
mode:
authorUlrich Drepper <drepper@redhat.com>2001-04-11 01:07:57 +0000
committerUlrich Drepper <drepper@redhat.com>2001-04-11 01:07:57 +0000
commit671ab00dcc3eaa263ab225ac26e7fc6b7677b3d0 (patch)
tree29e83c04cb40b5df0af1a438abd001f41055214a /locale/newlocale.c
parent7e3f28752e9d9d5c3c92feec638c11f5c5505d17 (diff)
downloadglibc-671ab00dcc3eaa263ab225ac26e7fc6b7677b3d0.zip
glibc-671ab00dcc3eaa263ab225ac26e7fc6b7677b3d0.tar.gz
glibc-671ab00dcc3eaa263ab225ac26e7fc6b7677b3d0.tar.bz2
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.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/locale/newlocale.c b/locale/newlocale.c
index 1f5b745..423e137 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;