fix tolower and locales
commitb98192b80ee5654aa7c5590bcc266c5eec2c67a5
authorEugene Yudin <e.yudin@ndmsystems.com>
Mon, 24 Jul 2017 20:27:00 +0000 (24 22:27 +0200)
committerWaldemar Brodkorb <wbx@openadk.org>
Fri, 28 Jul 2017 17:06:07 +0000 (28 19:06 +0200)
treeb6f6dbf90cd2dadceb24b4ea8e4ea8831e79c88e
parent63597398e4fa0db50638568a8caa1637bab44705
fix tolower and locales

The function towlower doesn't work with locales different from C.
Issue was introduced in commit: 8cde3a9bf2856dcb9a759dec7ecb04a68e712254

Call to setlocale is needed for correct generation of the table uplow_diff.
Otherwise you receive compile time error "range assumption error" after
uncommenting the call.

Similar problem described here:
http://lists.uclibc.org/pipermail/uclibc/2015-March/048852.html

This commit fix the problem by using int32_t values.
extra/locale/gen_ldc.c
extra/locale/gen_wctype.c
extra/locale/locale_mmap.h
libc/misc/locale/locale.c
libc/sysdeps/linux/common/bits/uClibc_locale.h