diff options
author | Eric Fiselier <eric@efcs.ca> | 2018-04-04 04:00:14 +0000 |
---|---|---|
committer | Eric Fiselier <eric@efcs.ca> | 2018-04-04 04:00:14 +0000 |
commit | fcc1e6d978d4333426aa710af3d00c1db6a705da (patch) | |
tree | 333e4faaf5202bfff961cbad0f41dd113593c52e /libcxx/src | |
parent | 7d3aba66874fb0a5bdcce84e0750babf40f02ef8 (diff) | |
download | bcm5719-llvm-fcc1e6d978d4333426aa710af3d00c1db6a705da.tar.gz bcm5719-llvm-fcc1e6d978d4333426aa710af3d00c1db6a705da.zip |
Fix locale test data for GLIBC 2.27 and newer.
GLIBC 2.27 changed the locale data for fr_FR and ru_RU. In particular
they change the decimal and thousands separators used. This patch
makes the locale tests tolerate the updated locales.
llvm-svn: 329143
Diffstat (limited to 'libcxx/src')
-rw-r--r-- | libcxx/src/locale.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/libcxx/src/locale.cpp b/libcxx/src/locale.cpp index 11f864a2f41..b9c701137df 100644 --- a/libcxx/src/locale.cpp +++ b/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; |