Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(324)

Unified Diff: src/locale.cpp

Issue 904473004: Rebased localmods in libcxx to 223109. (Closed)
Patch Set: Created 5 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « lib/CMakeLists.txt ('k') | src/thread.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/locale.cpp
diff --git a/src/locale.cpp b/src/locale.cpp
index f21e35dd540a1d78667744a63cfe106c7b307724..191b2390e20e185f987e68e09e3c137a9a568cf6 100644
--- a/src/locale.cpp
+++ b/src/locale.cpp
@@ -1033,6 +1033,10 @@ ctype<char>::classic_table() _NOEXCEPT
// going to end up dereferencing it later...
#elif defined(__EMSCRIPTEN__)
return *__ctype_b_loc();
+#elif defined(_NEWLIB_VERSION) // @LOCALMOD-START
+ // Newlib has a 257-entry table in ctype_.c, where (char)0 starts at [1].
+ return _ctype_ + 1;
+ // @LOCALMOD-END
#elif defined(_AIX)
return (const unsigned int *)__lc_ctype_ptr->obj->mask;
#elif defined(__ANDROID__)
« no previous file with comments | « lib/CMakeLists.txt ('k') | src/thread.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698