[libc++][CI] fixed convert_thousands_sep_ru_RU for Russian in the libcxx/test/support...
authorzhijian <zhijian@ca.ibm.com>
Tue, 31 May 2022 17:55:59 +0000 (13:55 -0400)
committerzhijian <zhijian@ca.ibm.com>
Tue, 31 May 2022 17:55:59 +0000 (13:55 -0400)
Reviewers: David Tenty, Mark de Wever

Differential Revision: https://reviews.llvm.org/D125923

libcxx/test/std/localization/locale.categories/category.monetary/locale.money.get/locale.money.get.members/get_long_double_ru_RU.pass.cpp
libcxx/test/std/localization/locale.categories/category.monetary/locale.money.put/locale.money.put.members/put_long_double_ru_RU.pass.cpp
libcxx/test/support/locale_helpers.h

index c71a74b..56c4bf9 100644 (file)
@@ -60,15 +60,15 @@ std::wstring convert_thousands_sep_fr_FR(std::wstring const& in) {
 }
 
 // GLIBC 2.27 uses U+202F NARROW NO-BREAK SPACE as a thousands separator.
-// FreeBSD and Windows use U+00A0 NO-BREAK SPACE.
+// FreeBSD, AIX and Windows use U+00A0 NO-BREAK SPACE.
 std::wstring convert_thousands_sep_ru_RU(std::wstring const& in) {
 #if defined(TEST_HAS_GLIBC)
   return convert_thousands_sep(in, L'\u202F');
-#elif defined(__FreeBSD__) || defined(_WIN32)
+#  elif defined(__FreeBSD__) || defined(_WIN32) || defined(_AIX)
   return convert_thousands_sep(in, L'\u00A0');
-#else
+#  else
   return in;
-#endif
+#  endif
 }
 
 std::wstring negate_en_US(std::wstring s) {