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/22_locale/ctype/is/char/3.cc (test03): Use the classic
	locale to construct this hybrid locale, not the global locale.

From-SVN: r65469
This commit is contained in:
Benjamin Kosnik 2003-04-11 17:48:51 +00:00 committed by Benjamin Kosnik
parent d67b7799de
commit 6df0c1b460
2 changed files with 7 additions and 2 deletions

View 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

View 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;