diff options
author | Kevin Cernekee <cernekee@google.com> | 2015-02-16 17:26:49 -0800 |
---|---|---|
committer | Paul Eggert <eggert@cs.ucla.edu> | 2015-02-16 21:40:48 -0800 |
commit | 7bf9a5ee1c0c16215e6ef06858f5870e86c6d7df (patch) | |
tree | edffab5487726bfb070cdc6a6b5057ed246998d6 /lib | |
parent | 81ac748f1aa0c731dbda8e1118e8caa20553d7e9 (diff) | |
download | gnulib-7bf9a5ee1c0c16215e6ef06858f5870e86c6d7df.tar.gz |
localename: Implement gl_locale_name_thread_unsafe for Android
* 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.
Diffstat (limited to 'lib')
-rw-r--r-- | lib/localename.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/localename.c b/lib/localename.c index c6f326e5bd..f3733eb46c 100644 --- a/lib/localename.c +++ b/lib/localename.c @@ -2730,6 +2730,8 @@ gl_locale_name_thread_unsafe (int category, const char *categoryname) # elif defined __sun /* Solaris >= 12. */ return getlocalename_l (category, thread_locale); +# elif defined __ANDROID__ + return MB_CUR_MAX == 4 ? "C.UTF-8" : "C"; # endif } } |