mirror of
https://gcc.gnu.org/git/gcc.git
synced 2024-12-02 08:13:58 +08:00
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:
parent
d67b7799de
commit
6df0c1b460
@ -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
|
||||
|
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user