]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
3.cc (test03): Use the classic locale to construct this hybrid locale, not the global...
authorBenjamin Kosnik <bkoz@redhat.com>
Fri, 11 Apr 2003 17:48:51 +0000 (17:48 +0000)
committerBenjamin Kosnik <bkoz@gcc.gnu.org>
Fri, 11 Apr 2003 17:48:51 +0000 (17:48 +0000)
2003-04-11  Benjamin Kosnik  <bkoz@redhat.com>

* testsuite/22_locale/ctype/is/char/3.cc (test03): Use the classic
locale to construct this hybrid locale, not the global locale.

From-SVN: r65469

libstdc++-v3/ChangeLog
libstdc++-v3/testsuite/22_locale/ctype/is/char/3.cc

index 28bcb200d4d9c33fe17e5cf88aa5026df88bf779..577de694e2522444dfc2f2151b56887567b39f41 100644 (file)
@@ -1,3 +1,8 @@
+2003-04-11  Benjamin Kosnik  <bkoz@redhat.com>
+
+       * testsuite/22_locale/ctype/is/char/3.cc (test03): Use the classic
+       locale to construct this hybrid locale, not the global locale.
+
 2003-04-11  Benjamin Kosnik  <bkoz@redhat.com>
 
        * testsuite/27_io/basic_istream/sentry/char/3983-fstream.cc: Add
index fb3a75df244c03717ce2b44bfad3c84e08faee1d..0b56b5ca3b096f4e7d3805f858163d1c06a73ae6 100644 (file)
@@ -40,8 +40,8 @@ void test03()
   for (int i = 0; i < 256; ++i)
     maskdata[i] = std::ctype_base::alpha;
   std::ctype<char>* f = new std::ctype<char>(maskdata);
-  std::locale global;
-  std::locale loc(global, f);
+  std::locale loc_c = std::locale::classic();
+  std::locale loc(loc_c, f);
   for (int i = 0; i < 256; ++i) 
     {
       char_type ch = i;