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
+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,
#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;
}
}
#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) */
#if _GLIBCPP_USE_WCHAR_T
test01();
test02();
+ test03();
#endif
return 0;
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;
}
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()
test01();
test02();
test03();
+ test04();
#endif
return 0;
}
#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;
}
}
#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()
#if _GLIBCPP_USE_WCHAR_T
test01();
test03();
+ test04();
#endif
return 0;
#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;
}
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();
test05();
test06();
test07();
+ test08();
return 0;
}
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()
test05();
test06();
test07();
+ test08();
#endif
return 0;
}
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();
test04();
test05();
test06();
+ test07();
return 0;
}
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()
test04();
test05();
test06();
+ test07();
#endif
return 0;
}
#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;
}
}
#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()
#ifdef _GLIBCPP_USE_WCHAR_T
test01();
test02();
+ test03();
#endif
return 0;
}
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();
test03();
test04();
test05();
+ test06();
return 0;
}
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()
test03();
test04();
test05();
+ test06();
#endif
return 0;
}
#endif
}
+// http://gcc.gnu.org/ml/libstdc++/2002-05/msg00038.html
void test04()
{
bool test = true;
#endif
}
+// http://gcc.gnu.org/ml/libstdc++/2002-05/msg00038.html
void test04()
{
bool test = true;
#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;
}
}
#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()
#ifdef _GLIBCPP_USE_WCHAR_T
test01();
test02();
+ test03();
#endif
return 0;
}
#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();
test06();
test07();
+ test08();
return 0;
}
}
#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()
test06();
test07();
+ test08();
#endif
return 0;
}
#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;
}
}
#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()
test01();
test02();
test03();
+ test04();
#endif
return 0;
}