ndk-patches: Patch to 'define MB_CUR_MAX 4'
authorFredrik Fornwall <fredrik@fornwall.net>
Sun, 16 Jul 2017 10:36:06 +0000 (12:36 +0200)
committerFredrik Fornwall <fredrik@fornwall.net>
Sun, 16 Jul 2017 10:36:06 +0000 (12:36 +0200)
commit845a978a46710b19066f6393ec593e88706b1576
treeeef9b9b9b8c0fa60d0fa5558a37e8674f52c7a2c
parenta469ea623cccc4886eaf3485d84c37a4296247af
ndk-patches: Patch to 'define MB_CUR_MAX 4'

The platform headers has the following macro:

  #define MB_CUR_MAX __ctype_get_mb_cur_max()

where __ctype_get_mb_cur_max() tries to handle UTF-8 encodings.

However, even in Android 7.0 setlocale(LC_ALL, ""), which many
programs do at startup, doesn't work in that it sets the locale
as non-utf8:

  https://android.googlesource.com/platform/bionic/+/nougat-release/libc/bionic/locale.cpp#139

So we just always consider us being in an utf-8 locale.

Also rebuild coreutils to fix #1136.
build-package.sh
ndk-patches/stdlib.h.patch
packages/coreutils/build.sh