diff options
author | 2019-02-04 16:55:44 +0000 | |
---|---|---|
committer | 2019-02-04 16:55:44 +0000 | |
commit | 76c648e7a477ffb2a882ad5ffe523269bd9a3f6a (patch) | |
tree | 29d319d598650bab04e4f58e5e8769567e33091e /lib/libcxx/src/locale.cpp | |
parent | Import libc++abi 7.0.1. (diff) | |
download | wireguard-openbsd-76c648e7a477ffb2a882ad5ffe523269bd9a3f6a.tar.xz wireguard-openbsd-76c648e7a477ffb2a882ad5ffe523269bd9a3f6a.zip |
Import libc++ 7.0.1.
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; |