+2002-05-13 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-13 Paolo Carlini <pcarlini@unitus.it>
* testsuite/22_locale/codecvt_members_char_char.cc
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();
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();
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();
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();