From 6720d4bd042bc22fc809c6ebc0eab60eab2a56c1 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. git-svn-id: https://llvm.org/svn/llvm-project/libcxx/trunk@213672 91177308-0d34-0410-b5e6-96231b3b80d8 --- src/locale.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/locale.cpp b/src/locale.cpp index fc314ca91..148fe42a2 100644 --- a/src/locale.cpp +++ b/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