[libcxx] r213672 - Fix classic_locale for Android.
Dan Albert
danalbert at google.com
Tue Jul 22 10:32:57 PDT 2014
Author: danalbert
Date: Tue Jul 22 12:32:56 2014
New Revision: 213672
URL: http://llvm.org/viewvc/llvm-project?rev=213672&view=rev
Log:
Fix classic_locale for Android.
Android's classic_locale begins at _ctype_ + 1.
Modified:
libcxx/trunk/src/locale.cpp
Modified: libcxx/trunk/src/locale.cpp
URL: http://llvm.org/viewvc/llvm-project/libcxx/trunk/src/locale.cpp?rev=213672&r1=213671&r2=213672&view=diff
==============================================================================
--- libcxx/trunk/src/locale.cpp (original)
+++ libcxx/trunk/src/locale.cpp Tue Jul 22 12:32:56 2014
@@ -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
More information about the cfe-commits
mailing list