Skip to content

Commit

Permalink
[libc++][CI] fixed convert_thousands_sep_ru_RU for Russian in the lib…
Browse files Browse the repository at this point in the history
…cxx/test/support/locale_helpers.h for AIX

Reviewers: David Tenty, Mark de Wever

Differential Revision: https://reviews.llvm.org/D125923
  • Loading branch information
diggerlin committed May 31, 2022
1 parent 2e61dfb commit 248287f
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 6 deletions.
Expand Up @@ -12,7 +12,6 @@
// REQUIRES: locale.ru_RU.UTF-8

// XFAIL: glibc-old-ru_RU-decimal-point
// XFAIL: LIBCXX-AIX-FIXME

// <locale>

Expand Down
Expand Up @@ -12,7 +12,6 @@
// REQUIRES: locale.ru_RU.UTF-8

// XFAIL: glibc-old-ru_RU-decimal-point
// XFAIL: LIBCXX-AIX-FIXME

// <locale>

Expand Down
8 changes: 4 additions & 4 deletions libcxx/test/support/locale_helpers.h
Expand Up @@ -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) {
Expand Down

0 comments on commit 248287f

Please sign in to comment.