Fix classic_locale for Android.
authorDan Albert <danalbert@google.com>
Tue, 22 Jul 2014 17:32:56 +0000 (17:32 +0000)
committerDan Albert <danalbert@google.com>
Tue, 22 Jul 2014 17:32:56 +0000 (17:32 +0000)
Android's classic_locale begins at _ctype_ + 1.

llvm-svn: 213672

libcxx/src/locale.cpp

index fc314ca..148fe42 100644 (file)
@@ -1038,7 +1038,7 @@ ctype<char>::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