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__) |