From 6df0c1b4608fd21d9849c2b7fcb6f9b3aeefb193 Mon Sep 17 00:00:00 2001 From: Benjamin Kosnik Date: Fri, 11 Apr 2003 17:48:51 +0000 Subject: [PATCH] 3.cc (test03): Use the classic locale to construct this hybrid locale, not the global locale. 2003-04-11 Benjamin Kosnik * 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 | 5 +++++ libstdc++-v3/testsuite/22_locale/ctype/is/char/3.cc | 4 ++-- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/libstdc++-v3/ChangeLog b/libstdc++-v3/ChangeLog index 28bcb200d4d..577de694e25 100644 --- a/libstdc++-v3/ChangeLog +++ b/libstdc++-v3/ChangeLog @@ -1,3 +1,8 @@ +2003-04-11 Benjamin Kosnik + + * 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 * testsuite/27_io/basic_istream/sentry/char/3983-fstream.cc: Add diff --git a/libstdc++-v3/testsuite/22_locale/ctype/is/char/3.cc b/libstdc++-v3/testsuite/22_locale/ctype/is/char/3.cc index fb3a75df244..0b56b5ca3b0 100644 --- a/libstdc++-v3/testsuite/22_locale/ctype/is/char/3.cc +++ b/libstdc++-v3/testsuite/22_locale/ctype/is/char/3.cc @@ -40,8 +40,8 @@ void test03() for (int i = 0; i < 256; ++i) maskdata[i] = std::ctype_base::alpha; std::ctype* f = new std::ctype(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; -- 2.30.2