]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
2002-05-06 Paolo Carlini <pcarlini@unitus.it>
authorpaolo <paolo@138bc75d-0d04-0410-961f-82ee72b054a4>
Mon, 6 May 2002 21:12:15 +0000 (21:12 +0000)
committerpaolo <paolo@138bc75d-0d04-0410-961f-82ee72b054a4>
Mon, 6 May 2002 21:12:15 +0000 (21:12 +0000)
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.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@53236 138bc75d-0d04-0410-961f-82ee72b054a4

24 files changed:
libstdc++-v3/ChangeLog
libstdc++-v3/testsuite/22_locale/codecvt_members_char_char.cc
libstdc++-v3/testsuite/22_locale/codecvt_members_wchar_t_char.cc
libstdc++-v3/testsuite/22_locale/collate_members_char.cc
libstdc++-v3/testsuite/22_locale/collate_members_wchar_t.cc
libstdc++-v3/testsuite/22_locale/ctype_members_char.cc
libstdc++-v3/testsuite/22_locale/ctype_members_wchar_t.cc
libstdc++-v3/testsuite/22_locale/messages_members_char.cc
libstdc++-v3/testsuite/22_locale/money_get_members_char.cc
libstdc++-v3/testsuite/22_locale/money_get_members_wchar_t.cc
libstdc++-v3/testsuite/22_locale/money_put_members_char.cc
libstdc++-v3/testsuite/22_locale/money_put_members_wchar_t.cc
libstdc++-v3/testsuite/22_locale/moneypunct_members_char.cc
libstdc++-v3/testsuite/22_locale/moneypunct_members_wchar_t.cc
libstdc++-v3/testsuite/22_locale/num_get_members_char.cc
libstdc++-v3/testsuite/22_locale/num_get_members_wchar_t.cc
libstdc++-v3/testsuite/22_locale/num_put_members_char.cc
libstdc++-v3/testsuite/22_locale/num_put_members_wchar_t.cc
libstdc++-v3/testsuite/22_locale/numpunct_members_char.cc
libstdc++-v3/testsuite/22_locale/numpunct_members_wchar_t.cc
libstdc++-v3/testsuite/22_locale/time_get_members_char.cc
libstdc++-v3/testsuite/22_locale/time_get_members_wchar_t.cc
libstdc++-v3/testsuite/22_locale/time_put_members_char.cc
libstdc++-v3/testsuite/22_locale/time_put_members_wchar_t.cc

index b948d3a90d6945105f5735b625247a4fd987e7b5..7f7d23d1e88fb23217a6bcc4514f8984aff0fdef 100644 (file)
@@ -1,3 +1,31 @@
+2002-05-06  Paolo Carlini  <pcarlini@unitus.it>
+
+       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.
+
 2002-05-06  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
 
        * config/os/irix/irix5.2/bits/os_defines.h (_SGI_SOURCE,
index 8b3dfc6d19069362f598103f9eb7c47ad0a2dd75..397c489c8d93db72559bce28a6d40f4eecaefdf6 100644 (file)
@@ -97,9 +97,21 @@ void test02()
 #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;
 }
index 45655b7a6011af63ea699b29a257ee40205b3d7a..4041c2e722d1ca1be1a108beb8bc94b431ef4277 100644 (file)
@@ -128,6 +128,17 @@ void test02()
     }
 #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 @@ int main ()
 #if _GLIBCPP_USE_WCHAR_T
   test01();
   test02();
+  test03();
 #endif 
 
   return 0;
index f45ffd9d4aa90a80aa0c29ed1cdddbdccb40fac3..7ec42c685c7eb1c1fde903dd085ce54a829cd7a8 100644 (file)
@@ -161,10 +161,23 @@ void test03()
   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;
 }
index 5df42fe15d93cef4cbad48cd48980d2d56fc7456..496dffe649086dee36cd02d712e07f47a3a9bbff 100644 (file)
@@ -160,6 +160,18 @@ void test03()
   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 @@ int main()
   test01();
   test02();
   test03();
+  test04();
 #endif
   return 0;
 }
index d1e47b6bbbd5bc4c5e6e9158219359e6da44007c..da0786fc6b5489dacce77698150bf0ae784d6567 100644 (file)
@@ -280,11 +280,25 @@ void test04()
 #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;
 }
index aac23dc5a9218ffe2bbc7b0159fe9e00c499ba31..f4db4f12f7dd47bfea065160c8b912bc3d11410e 100644 (file)
@@ -114,6 +114,17 @@ void test03()
     }
 #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 @@ int main()
 #if _GLIBCPP_USE_WCHAR_T
   test01();
   test03();
+  test04();
 #endif 
 
   return 0;
index d37a86e772083ad6eb3bbe7a90fac8256db9c31f..81004b9473a596dd94ab091568892d5524f37680 100644 (file)
@@ -99,9 +99,21 @@ void test02()
 #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;
 }
index efe806fed334f1f47cea7a0eb122e717dc5caec0..2dec7ef60d721ac58523f69066bde2c2ad6b4782 100644 (file)
@@ -546,6 +546,22 @@ void test07()
   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 @@ int main()
   test05();
   test06();
   test07();
+  test08();
   return 0;
 }
index 2229de87ef63556742b8c2647b24bc4a444df7df..8809d58d0c3fa356286c408f827e006df13a2d82 100644 (file)
@@ -546,6 +546,22 @@ void test07()
   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 @@ int main()
   test05();
   test06();
   test07();
+  test08();
 #endif
   return 0;
 }
index a97f78fc8d6d91f3e1631b62c6d9503d7ebc550c..02558becf0ffd142d3ba1df4dc5aaca3f5f3feca 100644 (file)
@@ -368,6 +368,21 @@ void test06()
   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 @@ int main()
   test04();
   test05();
   test06();
+  test07();
   return 0;
 }
index dc77d0a05044e8c5599f9295742364ff470bac26..63880a2ae7a5dac7a5a39cbae4337f3a20ec657c 100644 (file)
@@ -367,6 +367,21 @@ void test06()
   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 @@ int main()
   test04();
   test05();
   test06();
+  test07();
 #endif
   return 0;
 }
index 3d4f5a0968b9cc997e55c8d0df08376f106091ec..930b4f5192e4a2bbed24cfcca499306cde0fbfeb 100644 (file)
@@ -123,9 +123,21 @@ void test02()
 #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;
 }
index f3b2f0c3908e74bc80424f4c3fe61d3d15ef5ebc..752a0e9240906f6d251d0df5a89ee63849b05904 100644 (file)
@@ -123,6 +123,17 @@ void test02()
     }
 #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 @@ int main()
 #ifdef _GLIBCPP_USE_WCHAR_T
   test01();
   test02();
+  test03();
 #endif
   return 0;
 }
index 7bf1e6956e79b04867ec7f02ebc53b81c229499f..c852f33f120469b429ac1a8307223cad99473532 100644 (file)
@@ -413,6 +413,20 @@ void test05()
   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 @@ int main()
   test03();
   test04();
   test05();
+  test06();
   return 0;
 }
 
index 2efbe5c5affed270d5a083c44d2fd00498ea3893..6a59d9d6cba1b475de78232a193a36b1b8546a91 100644 (file)
@@ -414,6 +414,20 @@ void test05()
   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 @@ int main()
   test03();
   test04();
   test05();
+  test06();
 #endif
   return 0;
 }
index 09630833d225bf7e15b4860cf4789d53ccc65fbe..185cc9ded244dcd01ccd06880c7b46604921aaad 100644 (file)
@@ -310,6 +310,7 @@ void test03()
 #endif
 }
 
+// http://gcc.gnu.org/ml/libstdc++/2002-05/msg00038.html
 void test04()
 {
   bool test = true;
index f3ac69238bf18ce0e31c215799e3849ddabd7ef3..8479b1bb590a79f0b329f4df8dae708153dc2722 100644 (file)
@@ -310,6 +310,7 @@ void test03()
 #endif
 }
 
+// http://gcc.gnu.org/ml/libstdc++/2002-05/msg00038.html
 void test04()
 {
   bool test = true;
index fa71a90e82542781bf6f3dd53db2b1401ff17620..13bda1fa4fffc04e46bd56b07ad8710530379f61 100644 (file)
@@ -101,9 +101,21 @@ void test02()
 #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;
 }
index ec2337cd0763769349a865f6b334b56291e893bc..39025b16d2b922865c67118cc256f4c9d9b92062 100644 (file)
@@ -98,6 +98,17 @@ void test02()
     }
 #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 @@ int main()
 #ifdef _GLIBCPP_USE_WCHAR_T
   test01();
   test02();
+  test03();
 #endif
   return 0;
 }
index 2ba8cca272f7766fdbc9d3abfaa4230d105743e5..e0aaeec262a6652f5433eb65df2cf487fd24b1d4 100644 (file)
@@ -699,6 +699,22 @@ void test07()
 #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,6 @@ int main()
   test06();
   
   test07();
+  test08();
   return 0;
 }
index 27530935b3ceeec17afca5f57df6fa7f648d6e76..d4f0632e3eb3b3a6f5fcc1e0bde6d082b4bc3a89 100644 (file)
@@ -698,6 +698,22 @@ void test07()
     }
 #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 @@ int main()
   test06();
 
   test07();
+  test08();
 #endif
   return 0;
 }
index e3c4e2552c489ad7ab32b30a20ac30cb45074a6f..6f17df5dbf9bb352b91e765e7e2de5af05e55a17 100644 (file)
@@ -250,10 +250,23 @@ void test03()
 #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;
 }
index a2bfd7d3d1a94fb6439b85e6a5a470e9d1f8e119..251d1749670d40cca6a185cf77e33f31c190856c 100644 (file)
@@ -251,6 +251,18 @@ void test03()
     }
 #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 @@ int main()
   test01();
   test02();
   test03();
+  test04();
 #endif
   return 0;
 }