summaryrefslogtreecommitdiffstats
path: root/libcxx
diff options
context:
space:
mode:
authorEd Schouten <ed@80386.nl>2015-03-09 12:04:16 +0000
committerEd Schouten <ed@80386.nl>2015-03-09 12:04:16 +0000
commit1d2c052e9f09144cc1a837e135cbf1982d6b4b9f (patch)
treec97aee775f40b46aa5720daa968bd8614344af5d /libcxx
parent5b982e539d5c50ddd1d407e60e9b8051502c4a37 (diff)
downloadbcm5719-llvm-1d2c052e9f09144cc1a837e135cbf1982d6b4b9f.tar.gz
bcm5719-llvm-1d2c052e9f09144cc1a837e135cbf1982d6b4b9f.zip
Add CloudABI locale names to platform_support.h.
On CloudABI we should append the timezone name to the end of the locale (e.g., nl_NL.UTF-8@Europe/Amsterdam). By fixing the locale names we can already let a lot of locale related tests pass. llvm-svn: 231649
Diffstat (limited to 'libcxx')
-rw-r--r--libcxx/test/support/platform_support.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/libcxx/test/support/platform_support.h b/libcxx/test/support/platform_support.h
index 180765ec516..ec6efce89e6 100644
--- a/libcxx/test/support/platform_support.h
+++ b/libcxx/test/support/platform_support.h
@@ -25,6 +25,16 @@
#define LOCALE_fr_CA_ISO8859_1 "French_Canada.1252"
#define LOCALE_ru_RU_UTF_8 "Russian_Russia.1251"
#define LOCALE_zh_CN_UTF_8 "Chinese_China.936"
+#elif defined(__CloudABI__)
+// Timezones are integrated into locales through LC_TIMEZONE_MASK on
+// CloudABI. LC_ALL_MASK can only be used if a timezone has also been
+// provided. UTC should be all right.
+#define LOCALE_en_US_UTF_8 "en_US.UTF-8@UTC"
+#define LOCALE_fr_FR_UTF_8 "fr_FR.UTF-8@UTC"
+#define LOCALE_fr_CA_ISO8859_1 "fr_CA.ISO-8859-1@UTC"
+#define LOCALE_cs_CZ_ISO8859_2 "cs_CZ.ISO-8859-2@UTC"
+#define LOCALE_ru_RU_UTF_8 "ru_RU.UTF-8@UTC"
+#define LOCALE_zh_CN_UTF_8 "zh_CN.UTF-8@UTC"
#else
#define LOCALE_en_US_UTF_8 "en_US.UTF-8"
#define LOCALE_fr_FR_UTF_8 "fr_FR.UTF-8"
OpenPOWER on IntegriCloud