diff options
Diffstat (limited to 'lib/libcxx/src/locale.cpp')
-rw-r--r-- | lib/libcxx/src/locale.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/lib/libcxx/src/locale.cpp b/lib/libcxx/src/locale.cpp index a6cb0e97d12..b9c701137df 100644 --- a/lib/libcxx/src/locale.cpp +++ b/lib/libcxx/src/locale.cpp @@ -4240,6 +4240,7 @@ static bool checked_string_to_char_convert(char& dest, // FIXME: Work around specific multibyte sequences that we can reasonable // translate into a different single byte. switch (wout) { + case L'\u202F': // narrow non-breaking space case L'\u00A0': // non-breaking space dest = ' '; return true; @@ -4659,7 +4660,7 @@ static string* init_am_pm() { - static string am_pm[24]; + static string am_pm[2]; am_pm[0] = "AM"; am_pm[1] = "PM"; return am_pm; @@ -4669,7 +4670,7 @@ static wstring* init_wam_pm() { - static wstring am_pm[24]; + static wstring am_pm[2]; am_pm[0] = L"AM"; am_pm[1] = L"PM"; return am_pm; |