Re: [PATCH 3/3] localename: Implement gl_locale_name_thread_unsafe() for Android

2015-02-16 Thread Kevin Cernekee
On Sun, Feb 15, 2015 at 11:20 PM, enh wrote: > there's portable public API for that: MB_CUR_MAX in . Thanks for the feedback. I'm sending V2 of this patch (just this patch) with your suggested fix. test-localename passes on both android-19 (where it's a no-op) and android-21.

Re: [PATCH 3/3] localename: Implement gl_locale_name_thread_unsafe() for Android

2015-02-16 Thread enh
there's portable public API for that: MB_CUR_MAX in . On Sun, Feb 15, 2015 at 4:49 PM, Kevin Cernekee wrote: > * lib/localename.c: Android API level >= 21 supports two hardcoded > locales: C (POSIX) and C.UTF-8. Distinguish them by checking > the internal __locale_t struct. > --- > ChangeLog

[PATCH 3/3] localename: Implement gl_locale_name_thread_unsafe() for Android

2015-02-15 Thread Kevin Cernekee
* lib/localename.c: Android API level >= 21 supports two hardcoded locales: C (POSIX) and C.UTF-8. Distinguish them by checking the internal __locale_t struct. --- ChangeLog| 5 + lib/localename.c | 6 ++ 2 files changed, 11 insertions(+) diff --git a/ChangeLog b/ChangeLog index