]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
libstdc++: Fix 22_locale/numpunct/members/char/3.cc execution test
authorUros Bizjak <ubizjak@gmail.com>
Fri, 14 Jan 2022 15:21:02 +0000 (16:21 +0100)
committerUros Bizjak <ubizjak@gmail.com>
Fri, 14 Jan 2022 15:21:57 +0000 (16:21 +0100)
The test fails on Fedora 33+ because nl_NL locale got thousands
separator defined.  Use one of ar_SA, bg_BG, bs_BA, pt_PT
or plain C locale instead.

2022-01-14  Uroš Bizjak  <ubizjak@gmail.com>

libstdc++-v3/ChangeLog:

* testsuite/22_locale/numpunct/members/char/3.cc:
Require pt_PT locale instead of nl_NL.
(test02): Use pt_PT locale instead of nl_NL.

libstdc++-v3/testsuite/22_locale/numpunct/members/char/3.cc

index 6e4959860cd098341b53714c24c2deaf870bab66..19b65d36e8814b4bf6bb715cd0e35679215b73b2 100644 (file)
@@ -1,4 +1,4 @@
-// { dg-require-namedlocale "nl_NL.ISO8859-15" }
+// { dg-require-namedlocale "pt_PT.ISO8859-15" }
 
 // 2001-01-24 Benjamin Kosnik  <bkoz@redhat.com>
 
@@ -28,8 +28,8 @@ void test02()
 {
   using namespace std;
 
-  // nl_NL chosen because it has no thousands separator (at this time).
-  locale loc_it = locale(ISO_8859(15,nl_NL));
+  // pt_PT chosen because it has no thousands separator (at this time).
+  locale loc_it = locale(ISO_8859(15,pt_PT));
 
   const numpunct<char>& nump_it = use_facet<numpunct<char> >(loc_it);