mirror of
https://gcc.gnu.org/git/gcc.git
synced 2024-11-25 03:44:04 +08:00
codecvt_members_char_char.cc: Do not allow NULL argument to be passed to setenv().
* testsuite/22_locale/codecvt_members_char_char.cc: Do not allow NULL argument to be passed to setenv(). * testsuite/22_locale/codecvt_members_wchar_t_char.cc: Likewise. * testsuite/22_locale/collate_members_char.cc: Likewise. * testsuite/22_locale/collate_members_wchar_t.cc: Likewise. * testsuite/22_locale/ctype_members_char.cc: Likewise. * testsuite/22_locale/ctype_members_wchar_t.cc: Likewise. * testsuite/22_locale/messages_members_char.cc: Likewise. * testsuite/22_locale/money_get_members_char.cc: Likewise. * testsuite/22_locale/money_get_members_wchar_t.cc: Likewise. * testsuite/22_locale/money_put_members_char.cc: Likewise. * testsuite/22_locale/money_put_members_wchar_t.cc: Likewise. * testsuite/22_locale/moneypunct_members_char.cc: Likewise. * testsuite/22_locale/moneypunct_members_wchar_t.cc: Likewise. * testsuite/22_locale/num_get_members_char.cc: Likewise. * testsuite/22_locale/num_get_members_wchar_t.cc: Likewise. * testsuite/22_locale/num_put_members_char.cc: Likewise. * testsuite/22_locale/num_put_members_wchar_t.cc: Likewise. * testsuite/22_locale/numpunct_members_char.cc: Likewise. * testsuite/22_locale/numpunct_members_wchar_t.cc: Likewise. * testsuite/22_locale/time_get_members_char.cc: Likewise. * testsuite/22_locale/time_get_members_wchar_t.cc: Likewise. * testsuite/22_locale/time_put_members_char.cc: Likewise. * testsuite/22_locale/time_put_members_wchar_t.cc: Likewise. From-SVN: r49384
This commit is contained in:
parent
bebc7e8b3d
commit
4a78d8641c
@ -1,3 +1,30 @@
|
||||
2002-01-31 Loren Rittle <ljrittle@acm.org>
|
||||
|
||||
* testsuite/22_locale/codecvt_members_char_char.cc: Do not
|
||||
allow NULL argument to be passed to setenv().
|
||||
* testsuite/22_locale/codecvt_members_wchar_t_char.cc: Likewise.
|
||||
* testsuite/22_locale/collate_members_char.cc: Likewise.
|
||||
* testsuite/22_locale/collate_members_wchar_t.cc: Likewise.
|
||||
* testsuite/22_locale/ctype_members_char.cc: Likewise.
|
||||
* testsuite/22_locale/ctype_members_wchar_t.cc: Likewise.
|
||||
* testsuite/22_locale/messages_members_char.cc: Likewise.
|
||||
* testsuite/22_locale/money_get_members_char.cc: Likewise.
|
||||
* testsuite/22_locale/money_get_members_wchar_t.cc: Likewise.
|
||||
* testsuite/22_locale/money_put_members_char.cc: Likewise.
|
||||
* testsuite/22_locale/money_put_members_wchar_t.cc: Likewise.
|
||||
* testsuite/22_locale/moneypunct_members_char.cc: Likewise.
|
||||
* testsuite/22_locale/moneypunct_members_wchar_t.cc: Likewise.
|
||||
* testsuite/22_locale/num_get_members_char.cc: Likewise.
|
||||
* testsuite/22_locale/num_get_members_wchar_t.cc: Likewise.
|
||||
* testsuite/22_locale/num_put_members_char.cc: Likewise.
|
||||
* testsuite/22_locale/num_put_members_wchar_t.cc: Likewise.
|
||||
* testsuite/22_locale/numpunct_members_char.cc: Likewise.
|
||||
* testsuite/22_locale/numpunct_members_wchar_t.cc: Likewise.
|
||||
* testsuite/22_locale/time_get_members_char.cc: Likewise.
|
||||
* testsuite/22_locale/time_get_members_wchar_t.cc: Likewise.
|
||||
* testsuite/22_locale/time_put_members_char.cc: Likewise.
|
||||
* testsuite/22_locale/time_put_members_wchar_t.cc: Likewise.
|
||||
|
||||
2002-01-30 Benjamin Kosnik <bkoz@redhat.com>
|
||||
|
||||
* config/locale/c_locale_gnu.cc: Same errno fixes as generic.
|
||||
|
@ -92,7 +92,7 @@ void test02()
|
||||
if (!setenv("LANG", "de_DE", 1))
|
||||
{
|
||||
test01();
|
||||
setenv("LANG", oldLANG, 1);
|
||||
setenv("LANG", oldLANG ? oldLANG : "", 1);
|
||||
}
|
||||
#endif
|
||||
}
|
||||
|
@ -124,7 +124,7 @@ void test02()
|
||||
if (!setenv("LANG", "de_DE", 1))
|
||||
{
|
||||
test01();
|
||||
setenv("LANG", oldLANG, 1);
|
||||
setenv("LANG", oldLANG ? oldLANG : "", 1);
|
||||
}
|
||||
#endif
|
||||
}
|
||||
|
@ -142,7 +142,7 @@ void test02()
|
||||
if (!setenv("LANG", "de_DE", 1))
|
||||
{
|
||||
test01();
|
||||
setenv("LANG", oldLANG, 1);
|
||||
setenv("LANG", oldLANG ? oldLANG : "", 1);
|
||||
}
|
||||
#endif
|
||||
}
|
||||
|
@ -142,7 +142,7 @@ void test02()
|
||||
if (!setenv("LANG", "de_DE", 1))
|
||||
{
|
||||
test01();
|
||||
setenv("LANG", oldLANG, 1);
|
||||
setenv("LANG", oldLANG ? oldLANG : "", 1);
|
||||
}
|
||||
#endif
|
||||
}
|
||||
|
@ -257,7 +257,7 @@ void test03()
|
||||
{
|
||||
test01();
|
||||
test02();
|
||||
setenv("LANG", oldLANG, 1);
|
||||
setenv("LANG", oldLANG ? oldLANG : "", 1);
|
||||
}
|
||||
#endif
|
||||
}
|
||||
|
@ -110,7 +110,7 @@ void test03()
|
||||
if (!setenv("LANG", "de_DE", 1))
|
||||
{
|
||||
test01();
|
||||
setenv("LANG", oldLANG, 1);
|
||||
setenv("LANG", oldLANG ? oldLANG : "", 1);
|
||||
}
|
||||
#endif
|
||||
}
|
||||
|
@ -94,7 +94,7 @@ void test02()
|
||||
if (!setenv("LANG", "de_DE", 1))
|
||||
{
|
||||
test01();
|
||||
setenv("LANG", oldLANG, 1);
|
||||
setenv("LANG", oldLANG ? oldLANG : "", 1);
|
||||
}
|
||||
#endif
|
||||
}
|
||||
|
@ -304,7 +304,7 @@ void test04()
|
||||
test01();
|
||||
test02();
|
||||
test03();
|
||||
setenv("LANG", oldLANG, 1);
|
||||
setenv("LANG", oldLANG ? oldLANG : "", 1);
|
||||
}
|
||||
#endif
|
||||
}
|
||||
|
@ -306,7 +306,7 @@ void test04()
|
||||
test01();
|
||||
test02();
|
||||
test03();
|
||||
setenv("LANG", oldLANG, 1);
|
||||
setenv("LANG", oldLANG ? oldLANG : "", 1);
|
||||
}
|
||||
#endif
|
||||
}
|
||||
|
@ -298,7 +298,7 @@ void test04()
|
||||
test01();
|
||||
test02();
|
||||
test03();
|
||||
setenv("LANG", oldLANG, 1);
|
||||
setenv("LANG", oldLANG ? oldLANG : "", 1);
|
||||
}
|
||||
#endif
|
||||
}
|
||||
|
@ -298,7 +298,7 @@ void test04()
|
||||
test01();
|
||||
test02();
|
||||
test03();
|
||||
setenv("LANG", oldLANG, 1);
|
||||
setenv("LANG", oldLANG ? oldLANG : "", 1);
|
||||
}
|
||||
#endif
|
||||
}
|
||||
|
@ -118,7 +118,7 @@ void test02()
|
||||
if (!setenv("LANG", "de_DE", 1))
|
||||
{
|
||||
test01();
|
||||
setenv("LANG", oldLANG, 1);
|
||||
setenv("LANG", oldLANG ? oldLANG : "", 1);
|
||||
}
|
||||
#endif
|
||||
}
|
||||
|
@ -119,7 +119,7 @@ void test02()
|
||||
if (!setenv("LANG", "de_DE", 1))
|
||||
{
|
||||
test01();
|
||||
setenv("LANG", oldLANG, 1);
|
||||
setenv("LANG", oldLANG ? oldLANG : "", 1);
|
||||
}
|
||||
#endif
|
||||
}
|
||||
|
@ -327,7 +327,7 @@ void test03()
|
||||
{
|
||||
test01();
|
||||
test02();
|
||||
setenv("LANG", oldLANG, 1);
|
||||
setenv("LANG", oldLANG ? oldLANG : "", 1);
|
||||
}
|
||||
#endif
|
||||
}
|
||||
|
@ -329,7 +329,7 @@ void test03()
|
||||
{
|
||||
test01();
|
||||
test02();
|
||||
setenv("LANG", oldLANG, 1);
|
||||
setenv("LANG", oldLANG ? oldLANG : "", 1);
|
||||
}
|
||||
#endif
|
||||
}
|
||||
|
@ -305,7 +305,7 @@ void test03()
|
||||
{
|
||||
test01();
|
||||
test02();
|
||||
setenv("LANG", oldLANG, 1);
|
||||
setenv("LANG", oldLANG ? oldLANG : "", 1);
|
||||
}
|
||||
#endif
|
||||
}
|
||||
|
@ -305,7 +305,7 @@ void test03()
|
||||
{
|
||||
test01();
|
||||
test02();
|
||||
setenv("LANG", oldLANG, 1);
|
||||
setenv("LANG", oldLANG ? oldLANG : "", 1);
|
||||
}
|
||||
#endif
|
||||
}
|
||||
|
@ -96,7 +96,7 @@ void test02()
|
||||
if (!setenv("LANG", "de_DE", 1))
|
||||
{
|
||||
test01();
|
||||
setenv("LANG", oldLANG, 1);
|
||||
setenv("LANG", oldLANG ? oldLANG : "", 1);
|
||||
}
|
||||
#endif
|
||||
}
|
||||
|
@ -94,7 +94,7 @@ void test02()
|
||||
if (!setenv("LANG", "de_DE", 1))
|
||||
{
|
||||
test01();
|
||||
setenv("LANG", oldLANG, 1);
|
||||
setenv("LANG", oldLANG ? oldLANG : "", 1);
|
||||
}
|
||||
#endif
|
||||
}
|
||||
|
@ -694,7 +694,7 @@ void test07()
|
||||
test04();
|
||||
test05();
|
||||
test06();
|
||||
setenv("LANG", oldLANG, 1);
|
||||
setenv("LANG", oldLANG ? oldLANG : "", 1);
|
||||
}
|
||||
#endif
|
||||
}
|
||||
|
@ -694,7 +694,7 @@ void test07()
|
||||
test04();
|
||||
test05();
|
||||
test06();
|
||||
setenv("LANG", oldLANG, 1);
|
||||
setenv("LANG", oldLANG ? oldLANG : "", 1);
|
||||
}
|
||||
#endif
|
||||
}
|
||||
|
@ -245,7 +245,7 @@ void test03()
|
||||
{
|
||||
test01();
|
||||
test02();
|
||||
setenv("LANG", oldLANG, 1);
|
||||
setenv("LANG", oldLANG ? oldLANG : "", 1);
|
||||
}
|
||||
#endif
|
||||
}
|
||||
|
@ -247,7 +247,7 @@ void test03()
|
||||
{
|
||||
test01();
|
||||
test02();
|
||||
setenv("LANG", oldLANG, 1);
|
||||
setenv("LANG", oldLANG ? oldLANG : "", 1);
|
||||
}
|
||||
#endif
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user