Commit b5623829 by Paolo Carlini Committed by Paolo Carlini

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
parent 83e0be55
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> 2002-05-06 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
* config/os/irix/irix5.2/bits/os_defines.h (_SGI_SOURCE, * config/os/irix/irix5.2/bits/os_defines.h (_SGI_SOURCE,
......
...@@ -97,9 +97,21 @@ void test02() ...@@ -97,9 +97,21 @@ void test02()
#endif #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 () int main ()
{ {
test01(); test01();
test02(); test02();
test03();
return 0; return 0;
} }
...@@ -128,6 +128,17 @@ void test02() ...@@ -128,6 +128,17 @@ void test02()
} }
#endif #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) */ #endif /* !defined(_GLIBCPP_USE_WCHAR_T) */
...@@ -136,6 +147,7 @@ int main () ...@@ -136,6 +147,7 @@ int main ()
#if _GLIBCPP_USE_WCHAR_T #if _GLIBCPP_USE_WCHAR_T
test01(); test01();
test02(); test02();
test03();
#endif #endif
return 0; return 0;
......
...@@ -161,10 +161,23 @@ void test03() ...@@ -161,10 +161,23 @@ void test03()
VERIFY( l1 != l2 ); 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() int main()
{ {
test01(); test01();
test02(); test02();
test03(); test03();
test04();
return 0; return 0;
} }
...@@ -160,6 +160,18 @@ void test03() ...@@ -160,6 +160,18 @@ void test03()
long l2 = col.hash(str2.c_str(), str2.c_str() + str2.size()); long l2 = col.hash(str2.c_str(), str2.c_str() + str2.size());
VERIFY( l1 != l2 ); 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 #endif
int main() int main()
...@@ -168,6 +180,7 @@ int main() ...@@ -168,6 +180,7 @@ int main()
test01(); test01();
test02(); test02();
test03(); test03();
test04();
#endif #endif
return 0; return 0;
} }
...@@ -280,11 +280,25 @@ void test04() ...@@ -280,11 +280,25 @@ void test04()
#endif #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() int main()
{ {
test01(); test01();
test02(); test02();
test03(); test03();
test04(); test04();
test05();
return 0; return 0;
} }
...@@ -114,6 +114,17 @@ void test03() ...@@ -114,6 +114,17 @@ void test03()
} }
#endif #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) */ #endif /* !defined(_GLIBCPP_USE_WCHAR_T) */
int main() int main()
...@@ -121,6 +132,7 @@ int main() ...@@ -121,6 +132,7 @@ int main()
#if _GLIBCPP_USE_WCHAR_T #if _GLIBCPP_USE_WCHAR_T
test01(); test01();
test03(); test03();
test04();
#endif #endif
return 0; return 0;
......
...@@ -99,9 +99,21 @@ void test02() ...@@ -99,9 +99,21 @@ void test02()
#endif #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() int main()
{ {
test01(); test01();
test02(); test02();
test03();
return 0; return 0;
} }
...@@ -546,6 +546,22 @@ void test07() ...@@ -546,6 +546,22 @@ void test07()
VERIFY( val_b_ns == "123456" ); 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() int main()
{ {
test01(); test01();
...@@ -555,5 +571,6 @@ int main() ...@@ -555,5 +571,6 @@ int main()
test05(); test05();
test06(); test06();
test07(); test07();
test08();
return 0; return 0;
} }
...@@ -546,6 +546,22 @@ void test07() ...@@ -546,6 +546,22 @@ void test07()
mg_b.get(ibeg_b_ns,iend_b_ns,intl,fmt_b_ns,err,val_b_ns); mg_b.get(ibeg_b_ns,iend_b_ns,intl,fmt_b_ns,err,val_b_ns);
VERIFY( val_b_ns == L"123456" ); 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 #endif
int main() int main()
...@@ -558,6 +574,7 @@ int main() ...@@ -558,6 +574,7 @@ int main()
test05(); test05();
test06(); test06();
test07(); test07();
test08();
#endif #endif
return 0; return 0;
} }
...@@ -368,6 +368,21 @@ void test06() ...@@ -368,6 +368,21 @@ void test06()
VERIFY( fmt ); 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() int main()
{ {
test01(); test01();
...@@ -376,5 +391,6 @@ int main() ...@@ -376,5 +391,6 @@ int main()
test04(); test04();
test05(); test05();
test06(); test06();
test07();
return 0; return 0;
} }
...@@ -367,6 +367,21 @@ void test06() ...@@ -367,6 +367,21 @@ void test06()
mp.put(out,intl,fmt,'*',val); mp.put(out,intl,fmt,'*',val);
VERIFY( fmt ); 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 #endif
int main() int main()
...@@ -378,6 +393,7 @@ int main() ...@@ -378,6 +393,7 @@ int main()
test04(); test04();
test05(); test05();
test06(); test06();
test07();
#endif #endif
return 0; return 0;
} }
...@@ -123,9 +123,21 @@ void test02() ...@@ -123,9 +123,21 @@ void test02()
#endif #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() int main()
{ {
test01(); test01();
test02(); test02();
test03();
return 0; return 0;
} }
...@@ -123,6 +123,17 @@ void test02() ...@@ -123,6 +123,17 @@ void test02()
} }
#endif #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 #endif
int main() int main()
...@@ -130,6 +141,7 @@ int main() ...@@ -130,6 +141,7 @@ int main()
#ifdef _GLIBCPP_USE_WCHAR_T #ifdef _GLIBCPP_USE_WCHAR_T
test01(); test01();
test02(); test02();
test03();
#endif #endif
return 0; return 0;
} }
...@@ -413,6 +413,20 @@ void test05() ...@@ -413,6 +413,20 @@ void test05()
VERIFY( d == 1234.5 ); 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() int main()
{ {
test01(); test01();
...@@ -420,6 +434,7 @@ int main() ...@@ -420,6 +434,7 @@ int main()
test03(); test03();
test04(); test04();
test05(); test05();
test06();
return 0; return 0;
} }
......
...@@ -414,6 +414,20 @@ void test05() ...@@ -414,6 +414,20 @@ void test05()
VERIFY( err == goodbit ); VERIFY( err == goodbit );
VERIFY( d == 1234.5 ); 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 #endif
int main() int main()
...@@ -424,6 +438,7 @@ int main() ...@@ -424,6 +438,7 @@ int main()
test03(); test03();
test04(); test04();
test05(); test05();
test06();
#endif #endif
return 0; return 0;
} }
......
...@@ -310,6 +310,7 @@ void test03() ...@@ -310,6 +310,7 @@ void test03()
#endif #endif
} }
// http://gcc.gnu.org/ml/libstdc++/2002-05/msg00038.html
void test04() void test04()
{ {
bool test = true; bool test = true;
......
...@@ -310,6 +310,7 @@ void test03() ...@@ -310,6 +310,7 @@ void test03()
#endif #endif
} }
// http://gcc.gnu.org/ml/libstdc++/2002-05/msg00038.html
void test04() void test04()
{ {
bool test = true; bool test = true;
......
...@@ -101,9 +101,21 @@ void test02() ...@@ -101,9 +101,21 @@ void test02()
#endif #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() int main()
{ {
test01(); test01();
test02(); test02();
test03();
return 0; return 0;
} }
...@@ -98,6 +98,17 @@ void test02() ...@@ -98,6 +98,17 @@ void test02()
} }
#endif #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 #endif
int main() int main()
...@@ -105,6 +116,7 @@ int main() ...@@ -105,6 +116,7 @@ int main()
#ifdef _GLIBCPP_USE_WCHAR_T #ifdef _GLIBCPP_USE_WCHAR_T
test01(); test01();
test02(); test02();
test03();
#endif #endif
return 0; return 0;
} }
...@@ -699,6 +699,22 @@ void test07() ...@@ -699,6 +699,22 @@ void test07()
#endif #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() int main()
{ {
test01(); test01();
...@@ -710,5 +726,6 @@ int main() ...@@ -710,5 +726,6 @@ int main()
test06(); test06();
test07(); test07();
test08();
return 0; return 0;
} }
...@@ -698,6 +698,22 @@ void test07() ...@@ -698,6 +698,22 @@ void test07()
} }
#endif #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 #endif
int main() int main()
...@@ -712,6 +728,7 @@ int main() ...@@ -712,6 +728,7 @@ int main()
test06(); test06();
test07(); test07();
test08();
#endif #endif
return 0; return 0;
} }
...@@ -250,10 +250,23 @@ void test03() ...@@ -250,10 +250,23 @@ void test03()
#endif #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() int main()
{ {
test01(); test01();
test02(); test02();
test03(); test03();
test04();
return 0; return 0;
} }
...@@ -251,6 +251,18 @@ void test03() ...@@ -251,6 +251,18 @@ void test03()
} }
#endif #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 #endif
int main() int main()
...@@ -259,6 +271,7 @@ int main() ...@@ -259,6 +271,7 @@ int main()
test01(); test01();
test02(); test02();
test03(); test03();
test04();
#endif #endif
return 0; return 0;
} }
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment