+2002-05-19 Paolo Carlini <pcarlini@unitus.it>
+ Jakub Jelinek <jakub@redhat.com>
+
+ * testsuite/22_locale/money_get_members_char.cc
+ (test01, test02, test04): Use the de_DE@euro named locale
+ instead of de_DE to allow for an uniform behaviour with
+ both old and Euro-era localedata; tweak some tests.
+ * testsuite/22_locale/money_get_members_wchar_t.cc
+ (test01, test02, test04): Likewise.
+ * testsuite/22_locale/money_put_members_char.cc
+ (test01, test02, test04): Likewise.
+ * testsuite/22_locale/money_put_members_wchar_t.cc
+ (test01, test02, test04): Likewise.
+
+2002-05-19 Paolo Carlini <pcarlini@unitus.it>
+
+ * testsuite/22_locale/codecvt_members_char_char.cc
+ (test03): Robustify wrt localedata.
+ * testsuite/22_locale/codecvt_members_wchar_t_char.cc (test03): Likewise.
+ * testsuite/22_locale/collate_members_char.cc (test04): Likewise.
+ * testsuite/22_locale/collate_members_wchar_t.cc (test04): Likewise.
+ * testsuite/22_locale/ctype_members_char.cc (test05): Likewise.
+ * testsuite/22_locale/ctype_members_wchar_t.cc (test04): Likewise.
+ * testsuite/22_locale/messages_members_char.cc (test03): Likewise.
+ * testsuite/22_locale/money_get_members_char.cc (test08): Likewise.
+ * testsuite/22_locale/money_get_members_wchar_t.cc (test08): Likewise.
+ * testsuite/22_locale/money_put_members_char.cc (test07): Likewise.
+ * testsuite/22_locale/money_put_members_wchar_t.cc (test07): Likewise.
+ * testsuite/22_locale/moneypunct_members_char.cc (test03): Likewise.
+ * testsuite/22_locale/moneypunct_members_wchar_t.cc (test03): Likewise.
+ * testsuite/22_locale/num_get_members_char.cc (test06): Likewise.
+ * testsuite/22_locale/num_get_members_wchar_t.cc (test06): Likewise.
+ * testsuite/22_locale/num_put_members_char.cc (test04): Add comment.
+ * testsuite/22_locale/num_put_members_wchar_t.cc (test04): Likewise.
+ * testsuite/22_locale/numpunct_members_char.cc (test03): Likewise.
+ * testsuite/22_locale/numpunct_members_wchar_t.cc (test03): Likewise.
+ * testsuite/22_locale/time_get_members_char.cc (test08): Likewise.
+ * testsuite/22_locale/time_get_members_wchar_t.cc (test08): Likewise.
+ * testsuite/22_locale/time_put_members_char.cc (test04): Likewise.
+ * testsuite/22_locale/time_put_members_wchar_t.cc (test04): Likewise.
+
+2002-05-19 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-19 Benjamin Kosnik <bkoz@redhat.com>
+ Paolo Carlini <pcarlini@unitus.it>
+
+ * testsuite/22_locale/num_put_members_char.cc: Add test04(),
+ testing for the locale_facets.tcc entry of the previous commit.
+ * testsuite/22_locale/num_put_members_wchar_t.cc: Likewise.
+
2002-05-18 Takeshi Kobayakawa <tskoba@mte.biglobe.ne.jp>
* config/locale/generic/c_locale.cc
#endif
}
+// http://gcc.gnu.org/ml/libstdc++/2002-05/msg00038.html
+void test03()
+{
+ bool test = true;
+
+ const char* tentLANG = setlocale(LC_ALL, "ja_JP.eucjp");
+ if (tentLANG != NULL)
+ {
+ std::string preLANG = tentLANG;
+ test01();
+ std::string postLANG = setlocale(LC_ALL, NULL);
+ VERIFY( preLANG == postLANG );
+ }
+}
+
int main ()
{
test01();
test02();
+ test03();
return 0;
}
}
#endif
}
+
+// http://gcc.gnu.org/ml/libstdc++/2002-05/msg00038.html
+void test03()
+{
+ bool test = true;
+
+ const char* tentLANG = setlocale(LC_ALL, "ja_JP.eucjp");
+ if (tentLANG != NULL)
+ {
+ std::string preLANG = tentLANG;
+ test01();
+ std::string postLANG = setlocale(LC_ALL, NULL);
+ VERIFY( preLANG == postLANG );
+ }
+}
#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;
+
+ const char* tentLANG = setlocale(LC_ALL, "ja_JP.eucjp");
+ if (tentLANG != NULL)
+ {
+ std::string preLANG = tentLANG;
+ test01();
+ test03();
+ std::string postLANG = setlocale(LC_ALL, NULL);
+ VERIFY( preLANG == postLANG );
+ }
+}
+
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;
+
+ const char* tentLANG = setlocale(LC_ALL, "ja_JP.eucjp");
+ if (tentLANG != NULL)
+ {
+ std::string preLANG = tentLANG;
+ test01();
+ test03();
+ std::string postLANG = setlocale(LC_ALL, NULL);
+ VERIFY( preLANG == postLANG );
+ }
+}
#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;
+
+ const char* tentLANG = setlocale(LC_ALL, "ja_JP.eucjp");
+ if (tentLANG != NULL)
+ {
+ std::string preLANG = tentLANG;
+ test01();
+ test02();
+ test03();
+ std::string postLANG = setlocale(LC_ALL, NULL);
+ VERIFY( preLANG == postLANG );
+ }
+}
+
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;
+
+ const char* tentLANG = setlocale(LC_ALL, "ja_JP.eucjp");
+ if (tentLANG != NULL)
+ {
+ std::string preLANG = tentLANG;
+ test01();
+ std::string postLANG = setlocale(LC_ALL, NULL);
+ VERIFY( preLANG == postLANG );
+ }
+}
#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;
+
+ const char* tentLANG = setlocale(LC_ALL, "ja_JP.eucjp");
+ if (tentLANG != NULL)
+ {
+ std::string preLANG = tentLANG;
+ test01();
+ std::string postLANG = setlocale(LC_ALL, NULL);
+ VERIFY( preLANG == postLANG );
+ }
+}
+
int main()
{
test01();
test02();
+ test03();
return 0;
}
locale loc_c = locale::classic();
locale loc_hk("en_HK");
locale loc_fr("fr_FR@euro");
- locale loc_de("de_DE");
+ locale loc_de("de_DE@euro");
VERIFY( loc_c != loc_de );
VERIFY( loc_hk != loc_fr );
VERIFY( loc_hk != loc_de );
// now try with showbase, to get currency symbol in format
iss.setf(ios_base::showbase);
- iss.str("7.200.000.000,00 DEM ");
+ iss.str("7.200.000.000,00 EUR ");
iterator_type is_it06(iss);
string result6;
ios_base::iostate err06 = ios_base::goodbit;
VERIFY( result6 == digits1 );
VERIFY( err06 == ios_base::eofbit );
- iss.str("7.200.000.000,00 DEM "); // Extra space.
+ iss.str("7.200.000.000,00 EUR "); // Extra space.
iterator_type is_it07(iss);
string result7;
ios_base::iostate err07 = ios_base::goodbit;
VERIFY( result7 == digits1 );
VERIFY( err07 == ios_base::goodbit );
- iss.str("7.200.000.000,00 DM");
+ iss.str("7.200.000.000,00 \244");
iterator_type is_it08(iss);
string result8;
ios_base::iostate err08 = ios_base::goodbit;
locale loc_c = locale::classic();
locale loc_hk("en_HK");
locale loc_fr("fr_FR@euro");
- locale loc_de("de_DE");
+ locale loc_de("de_DE@euro");
VERIFY( loc_c != loc_de );
VERIFY( loc_hk != loc_fr );
VERIFY( loc_hk != loc_de );
{
#ifdef _GLIBCPP_HAVE_SETENV
// Set the global locale to non-"C".
- std::locale loc_de("de_DE");
+ std::locale loc_de("de_DE@euro");
std::locale::global(loc_de);
- // Set LANG environment variable to de_DE.
+ // Set LANG environment variable to de_DE@euro.
const char* oldLANG = getenv("LANG");
- if (!setenv("LANG", "de_DE", 1))
+ if (!setenv("LANG", "de_DE@euro", 1))
{
test01();
test02();
VERIFY( val_b_ns == "123456" );
}
+// http://gcc.gnu.org/ml/libstdc++/2002-05/msg00038.html
+void test08()
+{
+ bool test = true;
+
+ const char* tentLANG = setlocale(LC_ALL, "ja_JP.eucjp");
+ if (tentLANG != NULL)
+ {
+ std::string preLANG = tentLANG;
+ test01();
+ test02();
+ test03();
+ test05();
+ test06();
+ test07();
+ std::string postLANG = setlocale(LC_ALL, NULL);
+ VERIFY( preLANG == postLANG );
+ }
+}
+
int main()
{
test01();
test05();
test06();
test07();
+ test08();
return 0;
}
locale loc_c = locale::classic();
locale loc_hk("en_HK");
locale loc_fr("fr_FR@euro");
- locale loc_de("de_DE");
+ locale loc_de("de_DE@euro");
VERIFY( loc_c != loc_de );
VERIFY( loc_hk != loc_fr );
VERIFY( loc_hk != loc_de );
// now try with showbase, to get currency symbol in format
iss.setf(ios_base::showbase);
- iss.str(L"7.200.000.000,00 DEM ");
+ iss.str(L"7.200.000.000,00 EUR ");
iterator_type is_it06(iss);
wstring result6;
ios_base::iostate err06 = ios_base::goodbit;
VERIFY( result6 == digits1 );
VERIFY( err06 == ios_base::eofbit );
- iss.str(L"7.200.000.000,00 DEM "); // Extra space.
+ iss.str(L"7.200.000.000,00 EUR "); // Extra space.
iterator_type is_it07(iss);
wstring result7;
ios_base::iostate err07 = ios_base::goodbit;
VERIFY( result7 == digits1 );
VERIFY( err07 == ios_base::goodbit );
- iss.str(L"7.200.000.000,00 DM");
+ iss.str(L"7.200.000.000,00 \x20ac");
iterator_type is_it08(iss);
wstring result8;
ios_base::iostate err08 = ios_base::goodbit;
locale loc_c = locale::classic();
locale loc_hk("en_HK");
locale loc_fr("fr_FR@euro");
- locale loc_de("de_DE");
+ locale loc_de("de_DE@euro");
VERIFY( loc_c != loc_de );
VERIFY( loc_hk != loc_fr );
VERIFY( loc_hk != loc_de );
{
#ifdef _GLIBCPP_HAVE_SETENV
// Set the global locale to non-"C".
- std::locale loc_de("de_DE");
+ std::locale loc_de("de_DE@euro");
std::locale::global(loc_de);
- // Set LANG environment variable to de_DE.
+ // Set LANG environment variable to de_DE@euro.
const char* oldLANG = getenv("LANG");
- if (!setenv("LANG", "de_DE", 1))
+ if (!setenv("LANG", "de_DE@euro", 1))
{
test01();
test02();
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;
+
+ const char* tentLANG = setlocale(LC_ALL, "ja_JP.eucjp");
+ if (tentLANG != NULL)
+ {
+ std::string preLANG = tentLANG;
+ test01();
+ test02();
+ test03();
+ test05();
+ test06();
+ test07();
+ std::string postLANG = setlocale(LC_ALL, NULL);
+ VERIFY( preLANG == postLANG );
+ }
+}
#endif
int main()
test05();
test06();
test07();
+ test08();
#endif
return 0;
}
locale loc_c = locale::classic();
locale loc_hk("en_HK");
locale loc_fr("fr_FR@euro");
- locale loc_de("de_DE");
+ locale loc_de("de_DE@euro");
VERIFY( loc_c != loc_de );
VERIFY( loc_hk != loc_fr );
VERIFY( loc_hk != loc_de );
oss.str(empty);
iterator_type os_it03 = mon_put.put(oss.rdbuf(), true, oss, ' ', digits1);
string result3 = oss.str();
- VERIFY( result3 == "7.200.000.000,00 DEM ");
+ VERIFY( result3 == "7.200.000.000,00 EUR ");
oss.str(empty);
iterator_type os_it04 = mon_put.put(oss.rdbuf(), false, oss, ' ', digits1);
string result4 = oss.str();
- VERIFY( result4 == "7.200.000.000,00 DM");
+ VERIFY( result4 == "7.200.000.000,00 \244");
// intl and non-intl versions should be different.
VERIFY( result3 != result4 );
locale loc_c = locale::classic();
locale loc_hk("en_HK");
locale loc_fr("fr_FR@euro");
- locale loc_de("de_DE");
+ locale loc_de("de_DE@euro");
VERIFY( loc_c != loc_de );
VERIFY( loc_hk != loc_fr );
VERIFY( loc_hk != loc_de );
oss.str(empty);
iterator_type os_it03 = mon_put.put(oss.rdbuf(), true, oss, ' ', digits1);
string result3 = oss.str();
- VERIFY( result3 == "7.200.000.000,00 DEM ");
+ VERIFY( result3 == "7.200.000.000,00 EUR ");
oss.str(empty);
iterator_type os_it04 = mon_put.put(oss.rdbuf(), false, oss, ' ', digits1);
string result4 = oss.str();
- VERIFY( result4 == "7.200.000.000,00 DM");
+ VERIFY( result4 == "7.200.000.000,00 \244");
// intl and non-intl versions should be different.
VERIFY( result3 != result4 );
{
#ifdef _GLIBCPP_HAVE_SETENV
// Set the global locale to non-"C".
- std::locale loc_de("de_DE");
+ std::locale loc_de("de_DE@euro");
std::locale::global(loc_de);
- // Set LANG environment variable to de_DE.
+ // Set LANG environment variable to de_DE@euro.
const char* oldLANG = getenv("LANG");
- if (!setenv("LANG", "de_DE", 1))
+ if (!setenv("LANG", "de_DE@euro", 1))
{
test01();
test02();
VERIFY( fmt );
}
+// http://gcc.gnu.org/ml/libstdc++/2002-05/msg00038.html
+void test07()
+{
+ bool test = true;
+
+ const char* tentLANG = setlocale(LC_ALL, "ja_JP.eucjp");
+ if (tentLANG != NULL)
+ {
+ std::string preLANG = tentLANG;
+ test01();
+ test02();
+ test03();
+ test05();
+ test06();
+ std::string postLANG = setlocale(LC_ALL, NULL);
+ VERIFY( preLANG == postLANG );
+ }
+}
+
int main()
{
test01();
test04();
test05();
test06();
+ test07();
return 0;
}
locale loc_c = locale::classic();
locale loc_hk("en_HK");
locale loc_fr("fr_FR@euro");
- locale loc_de("de_DE");
+ locale loc_de("de_DE@euro");
VERIFY( loc_c != loc_de );
VERIFY( loc_hk != loc_fr );
VERIFY( loc_hk != loc_de );
oss.str(empty);
iterator_type os_it03 = mon_put.put(oss.rdbuf(), true, oss, ' ', digits1);
wstring result3 = oss.str();
- VERIFY( result3 == L"7.200.000.000,00 DEM ");
+ VERIFY( result3 == L"7.200.000.000,00 EUR ");
oss.str(empty);
iterator_type os_it04 = mon_put.put(oss.rdbuf(), false, oss, ' ', digits1);
wstring result4 = oss.str();
- VERIFY( result4 == L"7.200.000.000,00 DM");
+ VERIFY( result4 == L"7.200.000.000,00 \x20ac");
// intl and non-intl versions should be different.
VERIFY( result3 != result4 );
locale loc_c = locale::classic();
locale loc_hk("en_HK");
locale loc_fr("fr_FR@euro");
- locale loc_de("de_DE");
+ locale loc_de("de_DE@euro");
VERIFY( loc_c != loc_de );
VERIFY( loc_hk != loc_fr );
VERIFY( loc_hk != loc_de );
oss.str(empty);
iterator_type os_it03 = mon_put.put(oss.rdbuf(), true, oss, ' ', digits1);
wstring result3 = oss.str();
- VERIFY( result3 == L"7.200.000.000,00 DEM ");
+ VERIFY( result3 == L"7.200.000.000,00 EUR ");
oss.str(empty);
iterator_type os_it04 = mon_put.put(oss.rdbuf(), false, oss, ' ', digits1);
wstring result4 = oss.str();
- VERIFY( result4 == L"7.200.000.000,00 DM");
+ VERIFY( result4 == L"7.200.000.000,00 \x20ac");
// intl and non-intl versions should be different.
VERIFY( result3 != result4 );
{
#ifdef _GLIBCPP_HAVE_SETENV
// Set the global locale to non-"C".
- std::locale loc_de("de_DE");
+ std::locale loc_de("de_DE@euro");
std::locale::global(loc_de);
- // Set LANG environment variable to de_DE.
+ // Set LANG environment variable to de_DE@euro.
const char* oldLANG = getenv("LANG");
- if (!setenv("LANG", "de_DE", 1))
+ if (!setenv("LANG", "de_DE@euro", 1))
{
test01();
test02();
mp.put(out,intl,fmt,'*',val);
VERIFY( fmt );
}
+
+// http://gcc.gnu.org/ml/libstdc++/2002-05/msg00038.html
+void test07()
+{
+ bool test = true;
+
+ const char* tentLANG = setlocale(LC_ALL, "ja_JP.eucjp");
+ if (tentLANG != NULL)
+ {
+ std::string preLANG = tentLANG;
+ test01();
+ test02();
+ test03();
+ test05();
+ test06();
+ std::string postLANG = setlocale(LC_ALL, NULL);
+ VERIFY( preLANG == postLANG );
+ }
+}
#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;
+
+ const char* tentLANG = setlocale(LC_ALL, "ja_JP.eucjp");
+ if (tentLANG != NULL)
+ {
+ std::string preLANG = tentLANG;
+ test01();
+ std::string postLANG = setlocale(LC_ALL, NULL);
+ VERIFY( preLANG == postLANG );
+ }
+}
+
int main()
{
test01();
test02();
+ test03();
return 0;
}
}
#endif
}
+
+// http://gcc.gnu.org/ml/libstdc++/2002-05/msg00038.html
+void test03()
+{
+ bool test = true;
+
+ const char* tentLANG = setlocale(LC_ALL, "ja_JP.eucjp");
+ if (tentLANG != NULL)
+ {
+ std::string preLANG = tentLANG;
+ test01();
+ std::string postLANG = setlocale(LC_ALL, NULL);
+ VERIFY( preLANG == postLANG );
+ }
+}
#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;
+
+ const char* tentLANG = setlocale(LC_ALL, "ja_JP.eucjp");
+ if (tentLANG != NULL)
+ {
+ std::string preLANG = tentLANG;
+ test01();
+ test02();
+ test04();
+ test05();
+ std::string postLANG = setlocale(LC_ALL, NULL);
+ VERIFY( preLANG == postLANG );
+ }
+}
+
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;
+
+ const char* tentLANG = setlocale(LC_ALL, "ja_JP.eucjp");
+ if (tentLANG != NULL)
+ {
+ std::string preLANG = tentLANG;
+ test01();
+ test02();
+ test04();
+ test05();
+ std::string postLANG = setlocale(LC_ALL, NULL);
+ VERIFY( preLANG == postLANG );
+ }
+}
#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;
+
+ const char* tentLANG = setlocale(LC_ALL, "ja_JP.eucjp");
+ if (tentLANG != NULL)
+ {
+ std::string preLANG = tentLANG;
+ test01();
+ test02();
+ std::string postLANG = setlocale(LC_ALL, NULL);
+ VERIFY( preLANG == postLANG );
+ }
+}
+
int main()
{
test01();
test02();
test03();
+ test04();
return 0;
}
}
#endif
}
+
+// http://gcc.gnu.org/ml/libstdc++/2002-05/msg00038.html
+void test04()
+{
+ bool test = true;
+
+ const char* tentLANG = setlocale(LC_ALL, "ja_JP.eucjp");
+ if (tentLANG != NULL)
+ {
+ std::string preLANG = tentLANG;
+ test01();
+ test02();
+ std::string postLANG = setlocale(LC_ALL, NULL);
+ VERIFY( preLANG == postLANG );
+ }
+}
#endif
int main()
test01();
test02();
test03();
+ test04();
#endif
return 0;
}
#endif
}
+// http://gcc.gnu.org/ml/libstdc++/2002-05/msg00038.html
+void test03()
+{
+ bool test = true;
+
+ const char* tentLANG = setlocale(LC_ALL, "ja_JP.eucjp");
+ if (tentLANG != NULL)
+ {
+ std::string preLANG = tentLANG;
+ test01();
+ std::string postLANG = setlocale(LC_ALL, NULL);
+ VERIFY( preLANG == postLANG );
+ }
+}
+
int main()
{
test01();
test02();
+ test03();
return 0;
}
}
#endif
}
+
+// http://gcc.gnu.org/ml/libstdc++/2002-05/msg00038.html
+void test03()
+{
+ bool test = true;
+
+ const char* tentLANG = setlocale(LC_ALL, "ja_JP.eucjp");
+ if (tentLANG != NULL)
+ {
+ std::string preLANG = tentLANG;
+ test01();
+ std::string postLANG = setlocale(LC_ALL, NULL);
+ VERIFY( preLANG == postLANG );
+ }
+}
#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;
+
+ const char* tentLANG = setlocale(LC_ALL, "ja_JP.eucjp");
+ if (tentLANG != NULL)
+ {
+ std::string preLANG = tentLANG;
+ test01();
+ test02();
+ test03();
+ test04();
+ test05();
+ test06();
+ std::string postLANG = setlocale(LC_ALL, NULL);
+ VERIFY( preLANG == postLANG );
+ }
+}
+
int main()
{
test01();
test06();
test07();
+ test08();
return 0;
}
}
#endif
}
+
+// http://gcc.gnu.org/ml/libstdc++/2002-05/msg00038.html
+void test08()
+{
+ bool test = true;
+
+ const char* tentLANG = setlocale(LC_ALL, "ja_JP.eucjp");
+ if (tentLANG != NULL)
+ {
+ std::string preLANG = tentLANG;
+ test01();
+ test02();
+ test03();
+ test04();
+ test05();
+ test06();
+ std::string postLANG = setlocale(LC_ALL, NULL);
+ VERIFY( preLANG == postLANG );
+ }
+}
#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;
+
+ const char* tentLANG = setlocale(LC_ALL, "ja_JP.eucjp");
+ if (tentLANG != NULL)
+ {
+ std::string preLANG = tentLANG;
+ test01();
+ test02();
+ std::string postLANG = setlocale(LC_ALL, NULL);
+ VERIFY( preLANG == postLANG );
+ }
+}
+
int main()
{
test01();
test02();
test03();
+ test04();
return 0;
}
}
#endif
}
+
+// http://gcc.gnu.org/ml/libstdc++/2002-05/msg00038.html
+void test04()
+{
+ bool test = true;
+
+ const char* tentLANG = setlocale(LC_ALL, "ja_JP.eucjp");
+ if (tentLANG != NULL)
+ {
+ std::string preLANG = tentLANG;
+ test01();
+ test02();
+ std::string postLANG = setlocale(LC_ALL, NULL);
+ VERIFY( preLANG == postLANG );
+ }
+}
#endif
int main()
test01();
test02();
test03();
+ test04();
#endif
return 0;
}