This is the mail archive of the
libstdc++@gcc.gnu.org
mailing list for the libstdc++ project.
[PATCH, preappr] Test all the facets for the temporary "C" localeissue
- From: Paolo Carlini <pcarlini at unitus dot it>
- To: libstdc++ at gcc dot gnu dot org
- Date: Sun, 05 May 2002 12:44:50 +0200
- Subject: [PATCH, preappr] Test all the facets for the temporary "C" localeissue
Hi,
I'm posting for final a review the below, pre-approved by Benjamin
before leaving, which pre-emptively tests all the facets for the
temporary "C" locale switch issue put up by Takeshi. I have tested the
tests ;-) on i686-pc-linux-gnu. If nobody stops me, I will commit to
trunk in, say, 48 hours from now.
Thanks, ciao,
Paolo.
/////////////////////////
2002-05-05 Paolo Carlini <pcarlini@unitus.it>
Pre-emptively test all the facets for the temporary "C" locale
switch issue.
* testsuite/22_locale/codecvt_members_char_char.cc: Add test03.
* testsuite/22_locale/codecvt_members_wchar_t_char.cc: Likewise.
* testsuite/22_locale/collate_members_char.cc: Add test04.
* testsuite/22_locale/collate_members_wchar_t.cc: Likewise.
* testsuite/22_locale/ctype_members_char.cc: Add test05.
* testsuite/22_locale/ctype_members_wchar_t.cc: Add test04.
* testsuite/22_locale/messages_members_char.cc: Add test03.
* testsuite/22_locale/money_get_members_char.cc: Add test08.
* testsuite/22_locale/money_get_members_wchar_t.cc: Likewise.
* testsuite/22_locale/money_put_members_char.cc: Add test07.
* testsuite/22_locale/money_put_members_wchar_t.cc: Likewise.
* testsuite/22_locale/moneypunct_members_char.cc: Add test03.
* testsuite/22_locale/moneypunct_members_wchar_t.cc: Likewise.
* testsuite/22_locale/num_get_members_char.cc: Add test06.
* testsuite/22_locale/num_get_members_wchar_t.cc: Likewise.
* testsuite/22_locale/numpunct_members_char.cc: Add test03.
* testsuite/22_locale/numpunct_members_wchar_t.cc: Likewise.
* testsuite/22_locale/time_get_members_char.cc: Add test08.
* testsuite/22_locale/time_get_members_wchar_t.cc: Likewise.
* testsuite/22_locale/time_put_members_char.cc: Add test04.
* testsuite/22_locale/time_put_members_wchar_t.cc: Likewise.
* testsuite/22_locale/num_put_members_char.cc (test04): Add comment.
* testsuite/22_locale/num_put_members_wchar_t.cc (test04): Likewise.
diff -urN
libstdc++-v3-orig/testsuite/22_locale/codecvt_members_char_char.cc
libstdc++-v3/testsuite/22_locale/codecvt_members_char_char.cc
---
libstdc++-v3-orig/testsuite/22_locale/codecvt_members_char_char.cc
2002-02-01 01:24:12.000000000 +0100
+++ libstdc++-v3/testsuite/22_locale/codecvt_members_char_char.cc
2002-05-05 11:17:47.000000000 +0200
@@ -97,9 +97,21 @@
#endif
}
+// http://gcc.gnu.org/ml/libstdc++/2002-05/msg00038.html
+void test03()
+{
+ bool test = true;
+
+ std::string loc1 = setlocale(LC_ALL, "ja_JP.eucjp");
+ test01();
+ std::string loc2 = setlocale(LC_ALL, NULL);
+ VERIFY( loc1 == loc2 );
+}
+
int main ()
{
test01();
test02();
+ test03();
return 0;
}
diff -urN
libstdc++-v3-orig/testsuite/22_locale/codecvt_members_wchar_t_char.cc
libstdc++-v3/testsuite/22_locale/codecvt_members_wchar_t_char.cc
---
libstdc++-v3-orig/testsuite/22_locale/codecvt_members_wchar_t_char.cc
2002-02-08 02:34:41.000000000 +0100
+++ libstdc++-v3/testsuite/22_locale/codecvt_members_wchar_t_char.cc
2002-05-05 11:18:18.000000000 +0200
@@ -128,6 +128,17 @@
}
#endif
}
+
+// http://gcc.gnu.org/ml/libstdc++/2002-05/msg00038.html
+void test03()
+{
+ bool test = true;
+
+ std::string loc1 = setlocale(LC_ALL, "ja_JP.eucjp");
+ test01();
+ std::string loc2 = setlocale(LC_ALL, NULL);
+ VERIFY( loc1 == loc2 );
+}
#endif /* !defined(_GLIBCPP_USE_WCHAR_T) */
@@ -136,6 +147,7 @@
#if _GLIBCPP_USE_WCHAR_T
test01();
test02();
+ test03();
#endif
return 0;
diff -urN libstdc++-v3-orig/testsuite/22_locale/collate_members_char.cc
libstdc++-v3/testsuite/22_locale/collate_members_char.cc
--- libstdc++-v3-orig/testsuite/22_locale/collate_members_char.cc
2002-03-15 17:05:56.000000000 +0100
+++ libstdc++-v3/testsuite/22_locale/collate_members_char.cc
2002-05-05 11:15:59.000000000 +0200
@@ -161,10 +161,23 @@
VERIFY( l1 != l2 );
}
+// http://gcc.gnu.org/ml/libstdc++/2002-05/msg00038.html
+void test04()
+{
+ bool test = true;
+
+ std::string loc1 = setlocale(LC_ALL, "ja_JP.eucjp");
+ test01();
+ test03();
+ std::string loc2 = setlocale(LC_ALL, NULL);
+ VERIFY( loc1 == loc2 );
+}
+
int main()
{
test01();
test02();
test03();
+ test04();
return 0;
}
diff -urN
libstdc++-v3-orig/testsuite/22_locale/collate_members_wchar_t.cc
libstdc++-v3/testsuite/22_locale/collate_members_wchar_t.cc
--- libstdc++-v3-orig/testsuite/22_locale/collate_members_wchar_t.cc
2002-03-15 17:05:56.000000000 +0100
+++ libstdc++-v3/testsuite/22_locale/collate_members_wchar_t.cc
2002-05-05 11:16:33.000000000 +0200
@@ -160,6 +160,18 @@
long l2 = col.hash(str2.c_str(), str2.c_str() + str2.size());
VERIFY( l1 != l2 );
}
+
+// http://gcc.gnu.org/ml/libstdc++/2002-05/msg00038.html
+void test04()
+{
+ bool test = true;
+
+ std::string loc1 = setlocale(LC_ALL, "ja_JP.eucjp");
+ test01();
+ test03();
+ std::string loc2 = setlocale(LC_ALL, NULL);
+ VERIFY( loc1 == loc2 );
+}
#endif
int main()
@@ -168,6 +180,7 @@
test01();
test02();
test03();
+ test04();
#endif
return 0;
}
diff -urN libstdc++-v3-orig/testsuite/22_locale/ctype_members_char.cc
libstdc++-v3/testsuite/22_locale/ctype_members_char.cc
--- libstdc++-v3-orig/testsuite/22_locale/ctype_members_char.cc
2002-03-13 03:32:08.000000000 +0100
+++ libstdc++-v3/testsuite/22_locale/ctype_members_char.cc 2002-05-05
11:14:16.000000000 +0200
@@ -280,11 +280,25 @@
#endif
}
+// http://gcc.gnu.org/ml/libstdc++/2002-05/msg00038.html
+void test05()
+{
+ bool test = true;
+
+ std::string loc1 = setlocale(LC_ALL, "ja_JP.eucjp");
+ test01();
+ test02();
+ test03();
+ std::string loc2 = setlocale(LC_ALL, NULL);
+ VERIFY( loc1 == loc2 );
+}
+
int main()
{
test01();
test02();
test03();
test04();
+ test05();
return 0;
}
diff -urN libstdc++-v3-orig/testsuite/22_locale/ctype_members_wchar_t.cc
libstdc++-v3/testsuite/22_locale/ctype_members_wchar_t.cc
--- libstdc++-v3-orig/testsuite/22_locale/ctype_members_wchar_t.cc
2002-02-01 01:24:12.000000000 +0100
+++ libstdc++-v3/testsuite/22_locale/ctype_members_wchar_t.cc
2002-05-05 11:15:02.000000000 +0200
@@ -114,6 +114,17 @@
}
#endif
}
+
+// http://gcc.gnu.org/ml/libstdc++/2002-05/msg00038.html
+void test04()
+{
+ bool test = true;
+
+ std::string loc1 = setlocale(LC_ALL, "ja_JP.eucjp");
+ test01();
+ std::string loc2 = setlocale(LC_ALL, NULL);
+ VERIFY( loc1 == loc2 );
+}
#endif /* !defined(_GLIBCPP_USE_WCHAR_T) */
int main()
@@ -121,6 +132,7 @@
#if _GLIBCPP_USE_WCHAR_T
test01();
test03();
+ test04();
#endif
return 0;
diff -urN libstdc++-v3-orig/testsuite/22_locale/messages_members_char.cc
libstdc++-v3/testsuite/22_locale/messages_members_char.cc
--- libstdc++-v3-orig/testsuite/22_locale/messages_members_char.cc
2002-02-01 01:24:12.000000000 +0100
+++ libstdc++-v3/testsuite/22_locale/messages_members_char.cc
2002-05-05 11:13:01.000000000 +0200
@@ -99,9 +99,21 @@
#endif
}
+// http://gcc.gnu.org/ml/libstdc++/2002-05/msg00038.html
+void test03()
+{
+ bool test = true;
+
+ std::string loc1 = setlocale(LC_ALL, "ja_JP.eucjp");
+ test01();
+ std::string loc2 = setlocale(LC_ALL, NULL);
+ VERIFY( loc1 == loc2 );
+}
+
int main()
{
test01();
test02();
+ test03();
return 0;
}
diff -urN
libstdc++-v3-orig/testsuite/22_locale/money_get_members_char.cc
libstdc++-v3/testsuite/22_locale/money_get_members_char.cc
--- libstdc++-v3-orig/testsuite/22_locale/money_get_members_char.cc
2002-02-20 01:58:15.000000000 +0100
+++ libstdc++-v3/testsuite/22_locale/money_get_members_char.cc
2002-05-05 11:11:47.000000000 +0200
@@ -546,6 +546,22 @@
VERIFY( val_b_ns == "123456" );
}
+// http://gcc.gnu.org/ml/libstdc++/2002-05/msg00038.html
+void test08()
+{
+ bool test = true;
+
+ std::string loc1 = setlocale(LC_ALL, "ja_JP.eucjp");
+ test01();
+ test02();
+ test03();
+ test05();
+ test06();
+ test07();
+ std::string loc2 = setlocale(LC_ALL, NULL);
+ VERIFY( loc1 == loc2 );
+}
+
int main()
{
test01();
@@ -555,5 +571,6 @@
test05();
test06();
test07();
+ test08();
return 0;
}
diff -urN
libstdc++-v3-orig/testsuite/22_locale/money_get_members_wchar_t.cc
libstdc++-v3/testsuite/22_locale/money_get_members_wchar_t.cc
---
libstdc++-v3-orig/testsuite/22_locale/money_get_members_wchar_t.cc
2002-02-20 01:58:16.000000000 +0100
+++ libstdc++-v3/testsuite/22_locale/money_get_members_wchar_t.cc
2002-05-05 11:12:22.000000000 +0200
@@ -546,6 +546,22 @@
mg_b.get(ibeg_b_ns,iend_b_ns,intl,fmt_b_ns,err,val_b_ns);
VERIFY( val_b_ns == L"123456" );
}
+
+// http://gcc.gnu.org/ml/libstdc++/2002-05/msg00038.html
+void test08()
+{
+ bool test = true;
+
+ std::string loc1 = setlocale(LC_ALL, "ja_JP.eucjp");
+ test01();
+ test02();
+ test03();
+ test05();
+ test06();
+ test07();
+ std::string loc2 = setlocale(LC_ALL, NULL);
+ VERIFY( loc1 == loc2 );
+}
#endif
int main()
@@ -558,6 +574,7 @@
test05();
test06();
test07();
+ test08();
#endif
return 0;
}
diff -urN
libstdc++-v3-orig/testsuite/22_locale/money_put_members_char.cc
libstdc++-v3/testsuite/22_locale/money_put_members_char.cc
--- libstdc++-v3-orig/testsuite/22_locale/money_put_members_char.cc
2002-03-19 00:11:57.000000000 +0100
+++ libstdc++-v3/testsuite/22_locale/money_put_members_char.cc
2002-05-05 11:10:12.000000000 +0200
@@ -368,6 +368,21 @@
VERIFY( fmt );
}
+// http://gcc.gnu.org/ml/libstdc++/2002-05/msg00038.html
+void test07()
+{
+ bool test = true;
+
+ std::string loc1 = setlocale(LC_ALL, "ja_JP.eucjp");
+ test01();
+ test02();
+ test03();
+ test05();
+ test06();
+ std::string loc2 = setlocale(LC_ALL, NULL);
+ VERIFY( loc1 == loc2 );
+}
+
int main()
{
test01();
@@ -376,5 +391,6 @@
test04();
test05();
test06();
+ test07();
return 0;
}
diff -urN
libstdc++-v3-orig/testsuite/22_locale/money_put_members_wchar_t.cc
libstdc++-v3/testsuite/22_locale/money_put_members_wchar_t.cc
---
libstdc++-v3-orig/testsuite/22_locale/money_put_members_wchar_t.cc
2002-03-19 00:11:57.000000000 +0100
+++ libstdc++-v3/testsuite/22_locale/money_put_members_wchar_t.cc
2002-05-05 11:10:54.000000000 +0200
@@ -367,6 +367,21 @@
mp.put(out,intl,fmt,'*',val);
VERIFY( fmt );
}
+
+// http://gcc.gnu.org/ml/libstdc++/2002-05/msg00038.html
+void test07()
+{
+ bool test = true;
+
+ std::string loc1 = setlocale(LC_ALL, "ja_JP.eucjp");
+ test01();
+ test02();
+ test03();
+ test05();
+ test06();
+ std::string loc2 = setlocale(LC_ALL, NULL);
+ VERIFY( loc1 == loc2 );
+}
#endif
int main()
@@ -378,6 +393,7 @@
test04();
test05();
test06();
+ test07();
#endif
return 0;
}
diff -urN
libstdc++-v3-orig/testsuite/22_locale/moneypunct_members_char.cc
libstdc++-v3/testsuite/22_locale/moneypunct_members_char.cc
--- libstdc++-v3-orig/testsuite/22_locale/moneypunct_members_char.cc
2002-02-01 01:24:12.000000000 +0100
+++ libstdc++-v3/testsuite/22_locale/moneypunct_members_char.cc
2002-05-05 11:08:21.000000000 +0200
@@ -123,9 +123,21 @@
#endif
}
+// http://gcc.gnu.org/ml/libstdc++/2002-05/msg00038.html
+void test03()
+{
+ bool test = true;
+
+ std::string loc1 = setlocale(LC_ALL, "ja_JP.eucjp");
+ test01();
+ std::string loc2 = setlocale(LC_ALL, NULL);
+ VERIFY( loc1 == loc2 );
+}
+
int main()
{
test01();
test02();
+ test03();
return 0;
}
diff -urN
libstdc++-v3-orig/testsuite/22_locale/moneypunct_members_wchar_t.cc
libstdc++-v3/testsuite/22_locale/moneypunct_members_wchar_t.cc
---
libstdc++-v3-orig/testsuite/22_locale/moneypunct_members_wchar_t.cc
2002-02-01 01:24:12.000000000 +0100
+++ libstdc++-v3/testsuite/22_locale/moneypunct_members_wchar_t.cc
2002-05-05 11:08:52.000000000 +0200
@@ -123,6 +123,17 @@
}
#endif
}
+
+// http://gcc.gnu.org/ml/libstdc++/2002-05/msg00038.html
+void test03()
+{
+ bool test = true;
+
+ std::string loc1 = setlocale(LC_ALL, "ja_JP.eucjp");
+ test01();
+ std::string loc2 = setlocale(LC_ALL, NULL);
+ VERIFY( loc1 == loc2 );
+}
#endif
int main()
@@ -130,6 +141,7 @@
#ifdef _GLIBCPP_USE_WCHAR_T
test01();
test02();
+ test03();
#endif
return 0;
}
diff -urN libstdc++-v3-orig/testsuite/22_locale/num_get_members_char.cc
libstdc++-v3/testsuite/22_locale/num_get_members_char.cc
--- libstdc++-v3-orig/testsuite/22_locale/num_get_members_char.cc
2002-04-16 02:45:34.000000000 +0200
+++ libstdc++-v3/testsuite/22_locale/num_get_members_char.cc
2002-05-05 11:07:25.000000000 +0200
@@ -413,6 +413,20 @@
VERIFY( d == 1234.5 );
}
+// http://gcc.gnu.org/ml/libstdc++/2002-05/msg00038.html
+void test06()
+{
+ bool test = true;
+
+ std::string loc1 = setlocale(LC_ALL, "ja_JP.eucjp");
+ test01();
+ test02();
+ test04();
+ test05();
+ std::string loc2 = setlocale(LC_ALL, NULL);
+ VERIFY( loc1 == loc2 );
+}
+
int main()
{
test01();
@@ -420,6 +434,7 @@
test03();
test04();
test05();
+ test06();
return 0;
}
diff -urN
libstdc++-v3-orig/testsuite/22_locale/num_get_members_wchar_t.cc
libstdc++-v3/testsuite/22_locale/num_get_members_wchar_t.cc
--- libstdc++-v3-orig/testsuite/22_locale/num_get_members_wchar_t.cc
2002-04-16 02:45:34.000000000 +0200
+++ libstdc++-v3/testsuite/22_locale/num_get_members_wchar_t.cc
2002-05-05 11:07:36.000000000 +0200
@@ -414,6 +414,20 @@
VERIFY( err == goodbit );
VERIFY( d == 1234.5 );
}
+
+// http://gcc.gnu.org/ml/libstdc++/2002-05/msg00038.html
+void test06()
+{
+ bool test = true;
+
+ std::string loc1 = setlocale(LC_ALL, "ja_JP.eucjp");
+ test01();
+ test02();
+ test04();
+ test05();
+ std::string loc2 = setlocale(LC_ALL, NULL);
+ VERIFY( loc1 == loc2 );
+}
#endif
int main()
@@ -424,6 +438,7 @@
test03();
test04();
test05();
+ test06();
#endif
return 0;
}
diff -urN libstdc++-v3-orig/testsuite/22_locale/num_put_members_char.cc
libstdc++-v3/testsuite/22_locale/num_put_members_char.cc
--- libstdc++-v3-orig/testsuite/22_locale/num_put_members_char.cc
2002-05-04 23:33:18.000000000 +0200
+++ libstdc++-v3/testsuite/22_locale/num_put_members_char.cc
2002-05-05 10:42:02.000000000 +0200
@@ -310,6 +310,7 @@
#endif
}
+// http://gcc.gnu.org/ml/libstdc++/2002-05/msg00038.html
void test04()
{
bool test = true;
diff -urN
libstdc++-v3-orig/testsuite/22_locale/num_put_members_wchar_t.cc
libstdc++-v3/testsuite/22_locale/num_put_members_wchar_t.cc
--- libstdc++-v3-orig/testsuite/22_locale/num_put_members_wchar_t.cc
2002-05-04 23:33:18.000000000 +0200
+++ libstdc++-v3/testsuite/22_locale/num_put_members_wchar_t.cc
2002-05-05 10:42:29.000000000 +0200
@@ -310,6 +310,7 @@
#endif
}
+// http://gcc.gnu.org/ml/libstdc++/2002-05/msg00038.html
void test04()
{
bool test = true;
diff -urN libstdc++-v3-orig/testsuite/22_locale/numpunct_members_char.cc
libstdc++-v3/testsuite/22_locale/numpunct_members_char.cc
--- libstdc++-v3-orig/testsuite/22_locale/numpunct_members_char.cc
2002-02-01 01:24:12.000000000 +0100
+++ libstdc++-v3/testsuite/22_locale/numpunct_members_char.cc
2002-05-05 10:45:14.000000000 +0200
@@ -101,9 +101,21 @@
#endif
}
+// http://gcc.gnu.org/ml/libstdc++/2002-05/msg00038.html
+void test03()
+{
+ bool test = true;
+
+ std::string loc1 = setlocale(LC_ALL, "ja_JP.eucjp");
+ test01();
+ std::string loc2 = setlocale(LC_ALL, NULL);
+ VERIFY( loc1 == loc2 );
+}
+
int main()
{
test01();
test02();
+ test03();
return 0;
}
diff -urN
libstdc++-v3-orig/testsuite/22_locale/numpunct_members_wchar_t.cc
libstdc++-v3/testsuite/22_locale/numpunct_members_wchar_t.cc
--- libstdc++-v3-orig/testsuite/22_locale/numpunct_members_wchar_t.cc
2002-02-01 01:24:12.000000000 +0100
+++ libstdc++-v3/testsuite/22_locale/numpunct_members_wchar_t.cc
2002-05-05 10:45:54.000000000 +0200
@@ -98,6 +98,17 @@
}
#endif
}
+
+// http://gcc.gnu.org/ml/libstdc++/2002-05/msg00038.html
+void test03()
+{
+ bool test = true;
+
+ std::string loc1 = setlocale(LC_ALL, "ja_JP.eucjp");
+ test01();
+ std::string loc2 = setlocale(LC_ALL, NULL);
+ VERIFY( loc1 == loc2 );
+}
#endif
int main()
@@ -105,6 +116,7 @@
#ifdef _GLIBCPP_USE_WCHAR_T
test01();
test02();
+ test03();
#endif
return 0;
}
diff -urN libstdc++-v3-orig/testsuite/22_locale/time_get_members_char.cc
libstdc++-v3/testsuite/22_locale/time_get_members_char.cc
--- libstdc++-v3-orig/testsuite/22_locale/time_get_members_char.cc
2002-02-01 01:24:12.000000000 +0100
+++ libstdc++-v3/testsuite/22_locale/time_get_members_char.cc
2002-05-05 10:47:34.000000000 +0200
@@ -699,6 +699,22 @@
#endif
}
+// http://gcc.gnu.org/ml/libstdc++/2002-05/msg00038.html
+void test08()
+{
+ bool test = true;
+
+ std::string loc1 = setlocale(LC_ALL, "ja_JP.eucjp");
+ test01();
+ test02();
+ test03();
+ test04();
+ test05();
+ test06();
+ std::string loc2 = setlocale(LC_ALL, NULL);
+ VERIFY( loc1 == loc2 );
+}
+
int main()
{
test01();
@@ -710,5 +726,7 @@
test06();
test07();
+
+ test08();
return 0;
}
diff -urN
libstdc++-v3-orig/testsuite/22_locale/time_get_members_wchar_t.cc
libstdc++-v3/testsuite/22_locale/time_get_members_wchar_t.cc
--- libstdc++-v3-orig/testsuite/22_locale/time_get_members_wchar_t.cc
2002-02-01 01:24:12.000000000 +0100
+++ libstdc++-v3/testsuite/22_locale/time_get_members_wchar_t.cc
2002-05-05 10:48:13.000000000 +0200
@@ -698,6 +698,22 @@
}
#endif
}
+
+// http://gcc.gnu.org/ml/libstdc++/2002-05/msg00038.html
+void test08()
+{
+ bool test = true;
+
+ std::string loc1 = setlocale(LC_ALL, "ja_JP.eucjp");
+ test01();
+ test02();
+ test03();
+ test04();
+ test05();
+ test06();
+ std::string loc2 = setlocale(LC_ALL, NULL);
+ VERIFY( loc1 == loc2 );
+}
#endif
int main()
@@ -712,6 +728,7 @@
test06();
test07();
+ test08();
#endif
return 0;
}
diff -urN libstdc++-v3-orig/testsuite/22_locale/time_put_members_char.cc
libstdc++-v3/testsuite/22_locale/time_put_members_char.cc
--- libstdc++-v3-orig/testsuite/22_locale/time_put_members_char.cc
2002-02-01 01:24:12.000000000 +0100
+++ libstdc++-v3/testsuite/22_locale/time_put_members_char.cc
2002-05-05 11:04:19.000000000 +0200
@@ -250,10 +250,23 @@
#endif
}
+// http://gcc.gnu.org/ml/libstdc++/2002-05/msg00038.html
+void test04()
+{
+ bool test = true;
+
+ std::string loc1 = setlocale(LC_ALL, "ja_JP.eucjp");
+ test01();
+ test02();
+ std::string loc2 = setlocale(LC_ALL, NULL);
+ VERIFY( loc1 == loc2 );
+}
+
int main()
{
test01();
test02();
test03();
+ test04();
return 0;
}
diff -urN
libstdc++-v3-orig/testsuite/22_locale/time_put_members_wchar_t.cc
libstdc++-v3/testsuite/22_locale/time_put_members_wchar_t.cc
--- libstdc++-v3-orig/testsuite/22_locale/time_put_members_wchar_t.cc
2002-02-01 01:24:12.000000000 +0100
+++ libstdc++-v3/testsuite/22_locale/time_put_members_wchar_t.cc
2002-05-05 11:04:51.000000000 +0200
@@ -251,6 +251,18 @@
}
#endif
}
+
+// http://gcc.gnu.org/ml/libstdc++/2002-05/msg00038.html
+void test04()
+{
+ bool test = true;
+
+ std::string loc1 = setlocale(LC_ALL, "ja_JP.eucjp");
+ test01();
+ test02();
+ std::string loc2 = setlocale(LC_ALL, NULL);
+ VERIFY( loc1 == loc2 );
+}
#endif
int main()
@@ -259,6 +271,7 @@
test01();
test02();
test03();
+ test04();
#endif
return 0;
}