aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--libstdc++-v3/ChangeLog5
-rw-r--r--libstdc++-v3/testsuite/22_locale/ctype/is/char/3.cc4
2 files changed, 7 insertions, 2 deletions
diff --git a/libstdc++-v3/ChangeLog b/libstdc++-v3/ChangeLog
index 28bcb20..577de69 100644
--- a/libstdc++-v3/ChangeLog
+++ b/libstdc++-v3/ChangeLog
@@ -1,5 +1,10 @@
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
instantiation for AIX.
* testsuite/27_io/basic_ostream/sentry/char/3983-fstream.cc: Same.
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 fb3a75d..0b56b5c 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<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;