]> git.ipfire.org Git - thirdparty/gcc.git/blobdiff - libstdc++-v3/testsuite/22_locale/locale/cons/38365.cc
Improve portability of named locale tests
[thirdparty/gcc.git] / libstdc++-v3 / testsuite / 22_locale / locale / cons / 38365.cc
index dda44d9d16c3aceeed31aad135fd20354b8fd4f2..9d3faf2f42ff230aa5d037cc32b14c8c0da50e61 100644 (file)
@@ -1,4 +1,4 @@
-// { dg-require-namedlocale "en_US" }
+// { dg-require-namedlocale "en_US.ISO8859-1" }
 
 // Copyright (C) 2008-2015 Free Software Foundation, Inc.
 //
@@ -29,7 +29,7 @@ void test01()
   bool test __attribute__((unused)) = true;
 
   locale other(locale("C"));
-  locale one(locale("en_US"), new ctype<char>());
+  locale one(locale(ISO_8859(1,en_US)), new ctype<char>());
   locale loc(other, one, locale::collate);
 
   VERIFY( one.name() == "*" );