summaryrefslogtreecommitdiffstats
path: root/libcxx/src
diff options
context:
space:
mode:
authorEric Fiselier <eric@efcs.ca>2018-04-04 04:00:14 +0000
committerEric Fiselier <eric@efcs.ca>2018-04-04 04:00:14 +0000
commitfcc1e6d978d4333426aa710af3d00c1db6a705da (patch)
tree333e4faaf5202bfff961cbad0f41dd113593c52e /libcxx/src
parent7d3aba66874fb0a5bdcce84e0750babf40f02ef8 (diff)
downloadbcm5719-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.cpp1
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;
OpenPOWER on IntegriCloud