From 4339903c94927e33ab7b2804f0a6cae0687dc75a Mon Sep 17 00:00:00 2001 From: Dan Albert Date: Tue, 22 Jul 2014 17:32:56 +0000 Subject: [PATCH] Fix classic_locale for Android. Android's classic_locale begins at _ctype_ + 1. llvm-svn: 213672 --- libcxx/src/locale.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libcxx/src/locale.cpp b/libcxx/src/locale.cpp index fc314ca91367..148fe42a2f76 100644 --- a/libcxx/src/locale.cpp +++ b/libcxx/src/locale.cpp @@ -1038,7 +1038,7 @@ ctype::classic_table() _NOEXCEPT #elif defined(_AIX) return (const unsigned int *)__lc_ctype_ptr->obj->mask; #elif defined(__ANDROID__) - return _ctype_; + return _ctype_ + 1; #else // Platform not supported: abort so the person doing the port knows what to // fix