Test all the facets for the temporary "C" locale switch issue.

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.

From-SVN: r53236
This commit is contained in:
Paolo Carlini 2002-05-06 23:12:15 +02:00 committed by Paolo Carlini
parent 83e0be551c
commit b562382902
24 changed files with 322 additions and 0 deletions

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

View File

@ -310,6 +310,7 @@ void test03()
#endif
}
// http://gcc.gnu.org/ml/libstdc++/2002-05/msg00038.html
void test04()
{
bool test = true;

View File

@ -310,6 +310,7 @@ void test03()
#endif
}
// http://gcc.gnu.org/ml/libstdc++/2002-05/msg00038.html
void test04()
{
bool test = true;

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

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

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

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

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

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