aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPaolo Carlini <pcarlini@suse.de>2004-04-07 23:14:08 +0000
committerPaolo Carlini <paolo@gcc.gnu.org>2004-04-07 23:14:08 +0000
commitba98a8d81a0f323dc4fc6186d81d11b10801c1de (patch)
tree2a2dcecccd3c9ac54d8db2799f98b76f8aff0ae5
parent42b343d613c96ba2e8bd9bdcf6c8c56528a4154f (diff)
downloadgcc-ba98a8d81a0f323dc4fc6186d81d11b10801c1de.zip
gcc-ba98a8d81a0f323dc4fc6186d81d11b10801c1de.tar.gz
gcc-ba98a8d81a0f323dc4fc6186d81d11b10801c1de.tar.bz2
time_members.cc (__timepunct<char>::_M_initialize_timepunct, [...]): the correct _M_amonth07 in the "C" locale is "Jul" and L"Jul", respectively.
2004-04-07 Paolo Carlini <pcarlini@suse.de> * config/locale/generic/time_members.cc (__timepunct<char>::_M_initialize_timepunct, __timepunct<wchar_t>::_M_initialize_timepunct): the correct _M_amonth07 in the "C" locale is "Jul" and L"Jul", respectively. * config/locale/gnu/time_members.cc (__timepunct<char>::_M_initialize_timepunct, __timepunct<wchar_t>::_M_initialize_timepunct): Ditto. * testsuite/22_locale/time_get/get_monthname/char/4.cc: New. * testsuite/22_locale/time_get/get_monthname/wchar_t/4.cc: New. * testsuite/22_locale/time_get/date_order/char/1.cc: Remove junk. * testsuite/22_locale/time_get/date_order/wchar_t/1.cc: Ditto. * testsuite/22_locale/time_get/get_date/char/1.cc: Ditto. * testsuite/22_locale/time_get/get_date/char/2.cc: Ditto. * testsuite/22_locale/time_get/get_date/wchar_t/1.cc: Ditto. * testsuite/22_locale/time_get/get_date/wchar_t/2.cc: Ditto. * testsuite/22_locale/time_get/get_monthname/char/1.cc: Ditto. * testsuite/22_locale/time_get/get_monthname/char/2.cc: Ditto. * testsuite/22_locale/time_get/get_monthname/wchar_t/1.cc: Ditto. * testsuite/22_locale/time_get/get_monthname/wchar_t/2.cc: Ditto. * testsuite/22_locale/time_get/get_time/char/1.cc: Ditto. * testsuite/22_locale/time_get/get_time/char/2.cc: Ditto. * testsuite/22_locale/time_get/get_time/wchar_t/1.cc: Ditto. * testsuite/22_locale/time_get/get_time/wchar_t/2.cc: Ditto. * testsuite/22_locale/time_get/get_weekday/char/1.cc: Ditto. * testsuite/22_locale/time_get/get_weekday/char/2.cc: Ditto. * testsuite/22_locale/time_get/get_weekday/wchar_t/1.cc: Ditto. * testsuite/22_locale/time_get/get_weekday/wchar_t/2.cc: Ditto. * testsuite/22_locale/time_get/get_year/char/1.cc: Ditto. * testsuite/22_locale/time_get/get_year/wchar_t/1.cc: Ditto. * testsuite/22_locale/time_put/put/char/1.cc: Ditto. * testsuite/22_locale/time_put/put/char/2.cc: Ditto. * testsuite/22_locale/time_put/put/char/3.cc: Ditto. * testsuite/22_locale/time_put/put/char/4.cc: Ditto. * testsuite/22_locale/time_put/put/char/5.cc: Ditto. * testsuite/22_locale/time_put/put/char/6.cc: Ditto. * testsuite/22_locale/time_put/put/char/7.cc: Ditto. * testsuite/22_locale/time_put/put/char/8.cc: Ditto. * testsuite/22_locale/time_put/put/wchar_t/1.cc: Ditto. * testsuite/22_locale/time_put/put/wchar_t/2.cc: Ditto. * testsuite/22_locale/time_put/put/wchar_t/3.cc: Ditto. * testsuite/22_locale/time_put/put/wchar_t/4.cc: Ditto. * testsuite/22_locale/time_put/put/wchar_t/5.cc: Ditto. * testsuite/22_locale/time_put/put/wchar_t/6.cc: Ditto. * testsuite/22_locale/time_put/put/wchar_t/7.cc: Ditto. * testsuite/22_locale/time_put/put/wchar_t/8.cc: Ditto. * testsuite/22_locale/time_put/put/char/9780-1.cc: Fix typos. From-SVN: r80493
-rw-r--r--libstdc++-v3/ChangeLog51
-rw-r--r--libstdc++-v3/config/locale/generic/time_members.cc6
-rw-r--r--libstdc++-v3/config/locale/gnu/time_members.cc6
-rw-r--r--libstdc++-v3/testsuite/22_locale/time_get/date_order/char/1.cc16
-rw-r--r--libstdc++-v3/testsuite/22_locale/time_get/date_order/wchar_t/1.cc11
-rw-r--r--libstdc++-v3/testsuite/22_locale/time_get/get_date/char/1.cc16
-rw-r--r--libstdc++-v3/testsuite/22_locale/time_get/get_date/char/2.cc10
-rw-r--r--libstdc++-v3/testsuite/22_locale/time_get/get_date/wchar_t/1.cc16
-rw-r--r--libstdc++-v3/testsuite/22_locale/time_get/get_date/wchar_t/2.cc8
-rw-r--r--libstdc++-v3/testsuite/22_locale/time_get/get_monthname/char/1.cc16
-rw-r--r--libstdc++-v3/testsuite/22_locale/time_get/get_monthname/char/2.cc8
-rw-r--r--libstdc++-v3/testsuite/22_locale/time_get/get_monthname/char/4.cc59
-rw-r--r--libstdc++-v3/testsuite/22_locale/time_get/get_monthname/wchar_t/1.cc16
-rw-r--r--libstdc++-v3/testsuite/22_locale/time_get/get_monthname/wchar_t/2.cc10
-rw-r--r--libstdc++-v3/testsuite/22_locale/time_get/get_monthname/wchar_t/4.cc59
-rw-r--r--libstdc++-v3/testsuite/22_locale/time_get/get_time/char/1.cc11
-rw-r--r--libstdc++-v3/testsuite/22_locale/time_get/get_time/char/2.cc11
-rw-r--r--libstdc++-v3/testsuite/22_locale/time_get/get_time/wchar_t/1.cc11
-rw-r--r--libstdc++-v3/testsuite/22_locale/time_get/get_time/wchar_t/2.cc11
-rw-r--r--libstdc++-v3/testsuite/22_locale/time_get/get_weekday/char/1.cc16
-rw-r--r--libstdc++-v3/testsuite/22_locale/time_get/get_weekday/char/2.cc12
-rw-r--r--libstdc++-v3/testsuite/22_locale/time_get/get_weekday/wchar_t/1.cc16
-rw-r--r--libstdc++-v3/testsuite/22_locale/time_get/get_weekday/wchar_t/2.cc10
-rw-r--r--libstdc++-v3/testsuite/22_locale/time_get/get_year/char/1.cc16
-rw-r--r--libstdc++-v3/testsuite/22_locale/time_get/get_year/wchar_t/1.cc16
-rw-r--r--libstdc++-v3/testsuite/22_locale/time_put/put/char/1.cc11
-rw-r--r--libstdc++-v3/testsuite/22_locale/time_put/put/char/2.cc13
-rw-r--r--libstdc++-v3/testsuite/22_locale/time_put/put/char/3.cc9
-rw-r--r--libstdc++-v3/testsuite/22_locale/time_put/put/char/4.cc11
-rw-r--r--libstdc++-v3/testsuite/22_locale/time_put/put/char/5.cc13
-rw-r--r--libstdc++-v3/testsuite/22_locale/time_put/put/char/6.cc11
-rw-r--r--libstdc++-v3/testsuite/22_locale/time_put/put/char/7.cc10
-rw-r--r--libstdc++-v3/testsuite/22_locale/time_put/put/char/8.cc11
-rw-r--r--libstdc++-v3/testsuite/22_locale/time_put/put/char/9780-1.cc4
-rw-r--r--libstdc++-v3/testsuite/22_locale/time_put/put/wchar_t/1.cc11
-rw-r--r--libstdc++-v3/testsuite/22_locale/time_put/put/wchar_t/2.cc11
-rw-r--r--libstdc++-v3/testsuite/22_locale/time_put/put/wchar_t/3.cc9
-rw-r--r--libstdc++-v3/testsuite/22_locale/time_put/put/wchar_t/4.cc11
-rw-r--r--libstdc++-v3/testsuite/22_locale/time_put/put/wchar_t/5.cc11
-rw-r--r--libstdc++-v3/testsuite/22_locale/time_put/put/wchar_t/6.cc11
-rw-r--r--libstdc++-v3/testsuite/22_locale/time_put/put/wchar_t/7.cc9
-rw-r--r--libstdc++-v3/testsuite/22_locale/time_put/put/wchar_t/8.cc11
42 files changed, 287 insertions, 328 deletions
diff --git a/libstdc++-v3/ChangeLog b/libstdc++-v3/ChangeLog
index 59aae7d..f8aa918 100644
--- a/libstdc++-v3/ChangeLog
+++ b/libstdc++-v3/ChangeLog
@@ -1,5 +1,56 @@
2004-04-07 Paolo Carlini <pcarlini@suse.de>
+ * config/locale/generic/time_members.cc
+ (__timepunct<char>::_M_initialize_timepunct,
+ __timepunct<wchar_t>::_M_initialize_timepunct): the correct
+ _M_amonth07 in the "C" locale is "Jul" and L"Jul", respectively.
+ * config/locale/gnu/time_members.cc
+ (__timepunct<char>::_M_initialize_timepunct,
+ __timepunct<wchar_t>::_M_initialize_timepunct): Ditto.
+ * testsuite/22_locale/time_get/get_monthname/char/4.cc: New.
+ * testsuite/22_locale/time_get/get_monthname/wchar_t/4.cc: New.
+
+ * testsuite/22_locale/time_get/date_order/char/1.cc: Remove junk.
+ * testsuite/22_locale/time_get/date_order/wchar_t/1.cc: Ditto.
+ * testsuite/22_locale/time_get/get_date/char/1.cc: Ditto.
+ * testsuite/22_locale/time_get/get_date/char/2.cc: Ditto.
+ * testsuite/22_locale/time_get/get_date/wchar_t/1.cc: Ditto.
+ * testsuite/22_locale/time_get/get_date/wchar_t/2.cc: Ditto.
+ * testsuite/22_locale/time_get/get_monthname/char/1.cc: Ditto.
+ * testsuite/22_locale/time_get/get_monthname/char/2.cc: Ditto.
+ * testsuite/22_locale/time_get/get_monthname/wchar_t/1.cc: Ditto.
+ * testsuite/22_locale/time_get/get_monthname/wchar_t/2.cc: Ditto.
+ * testsuite/22_locale/time_get/get_time/char/1.cc: Ditto.
+ * testsuite/22_locale/time_get/get_time/char/2.cc: Ditto.
+ * testsuite/22_locale/time_get/get_time/wchar_t/1.cc: Ditto.
+ * testsuite/22_locale/time_get/get_time/wchar_t/2.cc: Ditto.
+ * testsuite/22_locale/time_get/get_weekday/char/1.cc: Ditto.
+ * testsuite/22_locale/time_get/get_weekday/char/2.cc: Ditto.
+ * testsuite/22_locale/time_get/get_weekday/wchar_t/1.cc: Ditto.
+ * testsuite/22_locale/time_get/get_weekday/wchar_t/2.cc: Ditto.
+ * testsuite/22_locale/time_get/get_year/char/1.cc: Ditto.
+ * testsuite/22_locale/time_get/get_year/wchar_t/1.cc: Ditto.
+ * testsuite/22_locale/time_put/put/char/1.cc: Ditto.
+ * testsuite/22_locale/time_put/put/char/2.cc: Ditto.
+ * testsuite/22_locale/time_put/put/char/3.cc: Ditto.
+ * testsuite/22_locale/time_put/put/char/4.cc: Ditto.
+ * testsuite/22_locale/time_put/put/char/5.cc: Ditto.
+ * testsuite/22_locale/time_put/put/char/6.cc: Ditto.
+ * testsuite/22_locale/time_put/put/char/7.cc: Ditto.
+ * testsuite/22_locale/time_put/put/char/8.cc: Ditto.
+ * testsuite/22_locale/time_put/put/wchar_t/1.cc: Ditto.
+ * testsuite/22_locale/time_put/put/wchar_t/2.cc: Ditto.
+ * testsuite/22_locale/time_put/put/wchar_t/3.cc: Ditto.
+ * testsuite/22_locale/time_put/put/wchar_t/4.cc: Ditto.
+ * testsuite/22_locale/time_put/put/wchar_t/5.cc: Ditto.
+ * testsuite/22_locale/time_put/put/wchar_t/6.cc: Ditto.
+ * testsuite/22_locale/time_put/put/wchar_t/7.cc: Ditto.
+ * testsuite/22_locale/time_put/put/wchar_t/8.cc: Ditto.
+
+ * testsuite/22_locale/time_put/put/char/9780-1.cc: Fix typos.
+
+2004-04-07 Paolo Carlini <pcarlini@suse.de>
+
* config/locale/gnu/monetary_members.cc
(moneypunct<wchar_t>::_M_initialize_moneypunct): Prefer
_NL_MONETARY_DECIMAL_POINT_WC, _NL_MONETARY_THOUSANDS_SEP_WC,
diff --git a/libstdc++-v3/config/locale/generic/time_members.cc b/libstdc++-v3/config/locale/generic/time_members.cc
index 3574a84..6e2f755 100644
--- a/libstdc++-v3/config/locale/generic/time_members.cc
+++ b/libstdc++-v3/config/locale/generic/time_members.cc
@@ -1,6 +1,6 @@
// std::time_get, std::time_put implementation, generic version -*- C++ -*-
-// Copyright (C) 2001, 2002, 2003 Free Software Foundation, Inc.
+// Copyright (C) 2001, 2002, 2003, 2004 Free Software Foundation, Inc.
//
// This file is part of the GNU ISO C++ Library. This library is free
// software; you can redistribute it and/or modify it under the
@@ -108,7 +108,7 @@ namespace std
_M_data->_M_amonth04 = "Apr";
_M_data->_M_amonth05 = "May";
_M_data->_M_amonth06 = "Jun";
- _M_data->_M_amonth07 = "July";
+ _M_data->_M_amonth07 = "Jul";
_M_data->_M_amonth08 = "Aug";
_M_data->_M_amonth09 = "Sep";
_M_data->_M_amonth10 = "Oct";
@@ -187,7 +187,7 @@ namespace std
_M_data->_M_amonth04 = L"Apr";
_M_data->_M_amonth05 = L"May";
_M_data->_M_amonth06 = L"Jun";
- _M_data->_M_amonth07 = L"July";
+ _M_data->_M_amonth07 = L"Jul";
_M_data->_M_amonth08 = L"Aug";
_M_data->_M_amonth09 = L"Sep";
_M_data->_M_amonth10 = L"Oct";
diff --git a/libstdc++-v3/config/locale/gnu/time_members.cc b/libstdc++-v3/config/locale/gnu/time_members.cc
index 62dc843..a8e9687 100644
--- a/libstdc++-v3/config/locale/gnu/time_members.cc
+++ b/libstdc++-v3/config/locale/gnu/time_members.cc
@@ -1,6 +1,6 @@
// std::time_get, std::time_put implementation, GNU version -*- C++ -*-
-// Copyright (C) 2001, 2002, 2003 Free Software Foundation, Inc.
+// Copyright (C) 2001, 2002, 2003, 2004 Free Software Foundation, Inc.
//
// This file is part of the GNU ISO C++ Library. This library is free
// software; you can redistribute it and/or modify it under the
@@ -117,7 +117,7 @@ namespace std
_M_data->_M_amonth04 = "Apr";
_M_data->_M_amonth05 = "May";
_M_data->_M_amonth06 = "Jun";
- _M_data->_M_amonth07 = "July";
+ _M_data->_M_amonth07 = "Jul";
_M_data->_M_amonth08 = "Aug";
_M_data->_M_amonth09 = "Sep";
_M_data->_M_amonth10 = "Oct";
@@ -265,7 +265,7 @@ namespace std
_M_data->_M_amonth04 = L"Apr";
_M_data->_M_amonth05 = L"May";
_M_data->_M_amonth06 = L"Jun";
- _M_data->_M_amonth07 = L"July";
+ _M_data->_M_amonth07 = L"Jul";
_M_data->_M_amonth08 = L"Aug";
_M_data->_M_amonth09 = L"Sep";
_M_data->_M_amonth10 = L"Oct";
diff --git a/libstdc++-v3/testsuite/22_locale/time_get/date_order/char/1.cc b/libstdc++-v3/testsuite/22_locale/time_get/date_order/char/1.cc
index 4eb2a31..85ce3cc 100644
--- a/libstdc++-v3/testsuite/22_locale/time_get/date_order/char/1.cc
+++ b/libstdc++-v3/testsuite/22_locale/time_get/date_order/char/1.cc
@@ -1,5 +1,6 @@
// 2001-09-21 Benjamin Kosnik <bkoz@redhat.com>
-// Copyright (C) 2001, 2002, 2003 Free Software Foundation
+
+// Copyright (C) 2001, 2002, 2003, 2004 Free Software Foundation
//
// This file is part of the GNU ISO C++ Library. This library is free
// software; you can redistribute it and/or modify it under the
@@ -30,17 +31,10 @@ void test01()
typedef time_base::dateorder dateorder;
typedef istreambuf_iterator<char> iterator_type;
- // basic construction and sanity checks.
+ // basic construction
locale loc_c = locale::classic();
- locale loc_hk = __gnu_test::try_named_locale("en_HK");
- locale loc_fr = __gnu_test::try_named_locale("fr_FR@euro");
- locale loc_de = __gnu_test::try_named_locale("de_DE");
- VERIFY( loc_hk != loc_c );
- VERIFY( loc_hk != loc_fr );
- VERIFY( loc_hk != loc_de );
- VERIFY( loc_de != loc_fr );
-
- const string empty;
+
+ const string empty;
// create an ostream-derived object, cache the time_get facet
iterator_type end;
diff --git a/libstdc++-v3/testsuite/22_locale/time_get/date_order/wchar_t/1.cc b/libstdc++-v3/testsuite/22_locale/time_get/date_order/wchar_t/1.cc
index 3916275..720fb8b 100644
--- a/libstdc++-v3/testsuite/22_locale/time_get/date_order/wchar_t/1.cc
+++ b/libstdc++-v3/testsuite/22_locale/time_get/date_order/wchar_t/1.cc
@@ -1,6 +1,6 @@
// 2001-09-21 Benjamin Kosnik <bkoz@redhat.com>
-// Copyright (C) 2001, 2002, 2003 Free Software Foundation
+// Copyright (C) 2001, 2002, 2003, 2004 Free Software Foundation
//
// This file is part of the GNU ISO C++ Library. This library is free
// software; you can redistribute it and/or modify it under the
@@ -31,15 +31,8 @@ void test01()
typedef time_base::dateorder dateorder;
typedef istreambuf_iterator<wchar_t> iterator_type;
- // basic construction and sanity checks.
+ // basic construction
locale loc_c = locale::classic();
- locale loc_hk = __gnu_test::try_named_locale("en_HK");
- locale loc_fr = __gnu_test::try_named_locale("fr_FR@euro");
- locale loc_de = __gnu_test::try_named_locale("de_DE");
- VERIFY( loc_hk != loc_c );
- VERIFY( loc_hk != loc_fr );
- VERIFY( loc_hk != loc_de );
- VERIFY( loc_de != loc_fr );
const string empty;
diff --git a/libstdc++-v3/testsuite/22_locale/time_get/get_date/char/1.cc b/libstdc++-v3/testsuite/22_locale/time_get/get_date/char/1.cc
index 0aa5ddc..714c3b2 100644
--- a/libstdc++-v3/testsuite/22_locale/time_get/get_date/char/1.cc
+++ b/libstdc++-v3/testsuite/22_locale/time_get/get_date/char/1.cc
@@ -1,6 +1,6 @@
// 2001-09-21 Benjamin Kosnik <bkoz@redhat.com>
-// Copyright (C) 2001, 2002, 2003 Free Software Foundation
+// Copyright (C) 2001, 2002, 2003, 2004 Free Software Foundation
//
// This file is part of the GNU ISO C++ Library. This library is free
// software; you can redistribute it and/or modify it under the
@@ -27,20 +27,12 @@
void test01()
{
using namespace std;
- typedef time_base::dateorder dateorder;
- typedef istreambuf_iterator<char> iterator_type;
-
bool test __attribute__((unused)) = true;
- // basic construction and sanity checks.
+ typedef istreambuf_iterator<char> iterator_type;
+
+ // basic construction
locale loc_c = locale::classic();
- locale loc_hk = __gnu_test::try_named_locale("en_HK");
- locale loc_fr = __gnu_test::try_named_locale("fr_FR@euro");
- locale loc_de = __gnu_test::try_named_locale("de_DE");
- VERIFY( loc_hk != loc_c );
- VERIFY( loc_hk != loc_fr );
- VERIFY( loc_hk != loc_de );
- VERIFY( loc_de != loc_fr );
const string empty;
diff --git a/libstdc++-v3/testsuite/22_locale/time_get/get_date/char/2.cc b/libstdc++-v3/testsuite/22_locale/time_get/get_date/char/2.cc
index 9860b43..f8f28da 100644
--- a/libstdc++-v3/testsuite/22_locale/time_get/get_date/char/2.cc
+++ b/libstdc++-v3/testsuite/22_locale/time_get/get_date/char/2.cc
@@ -1,6 +1,6 @@
// 2001-09-21 Benjamin Kosnik <bkoz@redhat.com>
-// Copyright (C) 2001, 2002, 2003 Free Software Foundation
+// Copyright (C) 2001, 2002, 2003, 2004 Free Software Foundation
//
// This file is part of the GNU ISO C++ Library. This library is free
// software; you can redistribute it and/or modify it under the
@@ -27,20 +27,16 @@
void test02()
{
using namespace std;
- typedef time_base::dateorder dateorder;
- typedef istreambuf_iterator<char> iterator_type;
-
bool test __attribute__((unused)) = true;
+ typedef istreambuf_iterator<char> iterator_type;
+
// basic construction and sanity checks.
locale loc_c = locale::classic();
locale loc_hk = __gnu_test::try_named_locale("en_HK");
- locale loc_fr = __gnu_test::try_named_locale("fr_FR@euro");
locale loc_de = __gnu_test::try_named_locale("de_DE");
VERIFY( loc_hk != loc_c );
- VERIFY( loc_hk != loc_fr );
VERIFY( loc_hk != loc_de );
- VERIFY( loc_de != loc_fr );
const string empty;
diff --git a/libstdc++-v3/testsuite/22_locale/time_get/get_date/wchar_t/1.cc b/libstdc++-v3/testsuite/22_locale/time_get/get_date/wchar_t/1.cc
index e4b67e0..d724f45 100644
--- a/libstdc++-v3/testsuite/22_locale/time_get/get_date/wchar_t/1.cc
+++ b/libstdc++-v3/testsuite/22_locale/time_get/get_date/wchar_t/1.cc
@@ -1,6 +1,6 @@
// 2001-09-21 Benjamin Kosnik <bkoz@redhat.com>
-// Copyright (C) 2001, 2002, 2003 Free Software Foundation
+// Copyright (C) 2001, 2002, 2003, 2004 Free Software Foundation
//
// This file is part of the GNU ISO C++ Library. This library is free
// software; you can redistribute it and/or modify it under the
@@ -27,20 +27,12 @@
void test01()
{
using namespace std;
- typedef time_base::dateorder dateorder;
- typedef istreambuf_iterator<wchar_t> iterator_type;
-
bool test __attribute__((unused)) = true;
- // basic construction and sanity checks.
+ typedef istreambuf_iterator<wchar_t> iterator_type;
+
+ // basic construction
locale loc_c = locale::classic();
- locale loc_hk = __gnu_test::try_named_locale("en_HK");
- locale loc_fr = __gnu_test::try_named_locale("fr_FR@euro");
- locale loc_de = __gnu_test::try_named_locale("de_DE");
- VERIFY( loc_hk != loc_c );
- VERIFY( loc_hk != loc_fr );
- VERIFY( loc_hk != loc_de );
- VERIFY( loc_de != loc_fr );
const wstring empty;
diff --git a/libstdc++-v3/testsuite/22_locale/time_get/get_date/wchar_t/2.cc b/libstdc++-v3/testsuite/22_locale/time_get/get_date/wchar_t/2.cc
index 5969572..4ca802a 100644
--- a/libstdc++-v3/testsuite/22_locale/time_get/get_date/wchar_t/2.cc
+++ b/libstdc++-v3/testsuite/22_locale/time_get/get_date/wchar_t/2.cc
@@ -27,20 +27,16 @@
void test02()
{
using namespace std;
- typedef time_base::dateorder dateorder;
- typedef istreambuf_iterator<wchar_t> iterator_type;
-
bool test __attribute__((unused)) = true;
+ typedef istreambuf_iterator<wchar_t> iterator_type;
+
// basic construction and sanity checks.
locale loc_c = locale::classic();
locale loc_hk = __gnu_test::try_named_locale("en_HK");
- locale loc_fr = __gnu_test::try_named_locale("fr_FR@euro");
locale loc_de = __gnu_test::try_named_locale("de_DE");
VERIFY( loc_hk != loc_c );
- VERIFY( loc_hk != loc_fr );
VERIFY( loc_hk != loc_de );
- VERIFY( loc_de != loc_fr );
const wstring empty;
diff --git a/libstdc++-v3/testsuite/22_locale/time_get/get_monthname/char/1.cc b/libstdc++-v3/testsuite/22_locale/time_get/get_monthname/char/1.cc
index cf948c3..5d31461 100644
--- a/libstdc++-v3/testsuite/22_locale/time_get/get_monthname/char/1.cc
+++ b/libstdc++-v3/testsuite/22_locale/time_get/get_monthname/char/1.cc
@@ -1,6 +1,6 @@
// 2001-09-21 Benjamin Kosnik <bkoz@redhat.com>
-// Copyright (C) 2001, 2002, 2003 Free Software Foundation
+// Copyright (C) 2001, 2002, 2003, 2004 Free Software Foundation
//
// This file is part of the GNU ISO C++ Library. This library is free
// software; you can redistribute it and/or modify it under the
@@ -27,23 +27,15 @@
void test01()
{
using namespace std;
- typedef time_base::dateorder dateorder;
+ bool test __attribute__((unused)) = true;
+
typedef istreambuf_iterator<char> iterator_type;
const ios_base::iostate good = ios_base::goodbit;
ios_base::iostate errorstate = good;
- bool test __attribute__((unused)) = true;
-
- // basic construction and sanity checks.
+ // basic construction
locale loc_c = locale::classic();
- locale loc_hk = __gnu_test::try_named_locale("en_HK");
- locale loc_fr = __gnu_test::try_named_locale("fr_FR@euro");
- locale loc_de = __gnu_test::try_named_locale("de_DE");
- VERIFY( loc_hk != loc_c );
- VERIFY( loc_hk != loc_fr );
- VERIFY( loc_hk != loc_de );
- VERIFY( loc_de != loc_fr );
// create "C" time objects
const tm time_bday = { 0, 0, 12, 4, 3, 71, 0, 93, 0 };
diff --git a/libstdc++-v3/testsuite/22_locale/time_get/get_monthname/char/2.cc b/libstdc++-v3/testsuite/22_locale/time_get/get_monthname/char/2.cc
index 5f183b5..7cd4cc6 100644
--- a/libstdc++-v3/testsuite/22_locale/time_get/get_monthname/char/2.cc
+++ b/libstdc++-v3/testsuite/22_locale/time_get/get_monthname/char/2.cc
@@ -27,20 +27,16 @@
void test02()
{
using namespace std;
- typedef time_base::dateorder dateorder;
- typedef istreambuf_iterator<char> iterator_type;
-
bool test __attribute__((unused)) = true;
+ typedef istreambuf_iterator<char> iterator_type;
+
// basic construction and sanity checks.
locale loc_c = locale::classic();
locale loc_hk = __gnu_test::try_named_locale("en_HK");
- locale loc_fr = __gnu_test::try_named_locale("fr_FR@euro");
locale loc_de = __gnu_test::try_named_locale("de_DE");
VERIFY( loc_hk != loc_c );
- VERIFY( loc_hk != loc_fr );
VERIFY( loc_hk != loc_de );
- VERIFY( loc_de != loc_fr );
const tm time_bday = { 0, 0, 12, 4, 3, 71, 0, 93, 0 };
diff --git a/libstdc++-v3/testsuite/22_locale/time_get/get_monthname/char/4.cc b/libstdc++-v3/testsuite/22_locale/time_get/get_monthname/char/4.cc
new file mode 100644
index 0000000..f187307
--- /dev/null
+++ b/libstdc++-v3/testsuite/22_locale/time_get/get_monthname/char/4.cc
@@ -0,0 +1,59 @@
+// 2004-04-07 Paolo Carlini <pcarlini@suse.de>
+
+// Copyright (C) 2004 Free Software Foundation
+//
+// This file is part of the GNU ISO C++ Library. This library is free
+// software; you can redistribute it and/or modify it under the
+// terms of the GNU General Public License as published by the
+// Free Software Foundation; either version 2, or (at your option)
+// any later version.
+
+// This library is distributed in the hope that it will be useful,
+// but WITHOUT ANY WARRANTY; without even the implied warranty of
+// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+// GNU General Public License for more details.
+
+// You should have received a copy of the GNU General Public License along
+// with this library; see the file COPYING. If not, write to the Free
+// Software Foundation, 59 Temple Place - Suite 330, Boston, MA 02111-1307,
+// USA.
+
+// 22.2.5.1.1 time_get members
+
+#include <locale>
+#include <sstream>
+#include <testsuite_hooks.h>
+
+void test01()
+{
+ using namespace std;
+ bool test __attribute__((unused)) = true;
+
+ typedef istreambuf_iterator<char> iterator_type;
+
+ const ios_base::iostate good = ios_base::goodbit;
+ ios_base::iostate errorstate = good;
+
+ // basic construction
+ locale loc_c = locale::classic();
+
+ iterator_type end;
+ istringstream iss;
+ iss.imbue(loc_c);
+ const time_get<char>& tim_get =
+ use_facet<time_get<char> >(iss.getloc());
+
+ iss.str("Jul");
+ iterator_type is_it01(iss);
+ tm time01;
+ errorstate = good;
+ tim_get.get_monthname(is_it01, end, iss, errorstate, &time01);
+ VERIFY( time01.tm_mon == 6 );
+ VERIFY( errorstate == ios_base::eofbit );
+}
+
+int main()
+{
+ test01();
+ return 0;
+}
diff --git a/libstdc++-v3/testsuite/22_locale/time_get/get_monthname/wchar_t/1.cc b/libstdc++-v3/testsuite/22_locale/time_get/get_monthname/wchar_t/1.cc
index 17a8075..c5c51a3 100644
--- a/libstdc++-v3/testsuite/22_locale/time_get/get_monthname/wchar_t/1.cc
+++ b/libstdc++-v3/testsuite/22_locale/time_get/get_monthname/wchar_t/1.cc
@@ -1,6 +1,6 @@
// 2001-09-21 Benjamin Kosnik <bkoz@redhat.com>
-// Copyright (C) 2001, 2002, 2003 Free Software Foundation
+// Copyright (C) 2001, 2002, 2003, 2004 Free Software Foundation
//
// This file is part of the GNU ISO C++ Library. This library is free
// software; you can redistribute it and/or modify it under the
@@ -27,23 +27,15 @@
void test01()
{
using namespace std;
- typedef time_base::dateorder dateorder;
+ bool test __attribute__((unused)) = true;
+
typedef istreambuf_iterator<wchar_t> iterator_type;
const ios_base::iostate good = ios_base::goodbit;
ios_base::iostate errorstate = good;
- bool test __attribute__((unused)) = true;
-
- // basic construction and sanity checks.
+ // basic construction
locale loc_c = locale::classic();
- locale loc_hk = __gnu_test::try_named_locale("en_HK");
- locale loc_fr = __gnu_test::try_named_locale("fr_FR@euro");
- locale loc_de = __gnu_test::try_named_locale("de_DE");
- VERIFY( loc_hk != loc_c );
- VERIFY( loc_hk != loc_fr );
- VERIFY( loc_hk != loc_de );
- VERIFY( loc_de != loc_fr );
// create "C" time objects
const tm time_bday = { 0, 0, 12, 4, 3, 71, 0, 93, 0 };
diff --git a/libstdc++-v3/testsuite/22_locale/time_get/get_monthname/wchar_t/2.cc b/libstdc++-v3/testsuite/22_locale/time_get/get_monthname/wchar_t/2.cc
index af861cb..5148c40 100644
--- a/libstdc++-v3/testsuite/22_locale/time_get/get_monthname/wchar_t/2.cc
+++ b/libstdc++-v3/testsuite/22_locale/time_get/get_monthname/wchar_t/2.cc
@@ -1,6 +1,6 @@
// 2001-09-21 Benjamin Kosnik <bkoz@redhat.com>
-// Copyright (C) 2001, 2002, 2003 Free Software Foundation
+// Copyright (C) 2001, 2002, 2003, 2004 Free Software Foundation
//
// This file is part of the GNU ISO C++ Library. This library is free
// software; you can redistribute it and/or modify it under the
@@ -27,20 +27,16 @@
void test02()
{
using namespace std;
- typedef time_base::dateorder dateorder;
- typedef istreambuf_iterator<wchar_t> iterator_type;
-
bool test __attribute__((unused)) = true;
+ typedef istreambuf_iterator<wchar_t> iterator_type;
+
// basic construction and sanity checks.
locale loc_c = locale::classic();
locale loc_hk = __gnu_test::try_named_locale("en_HK");
- locale loc_fr = __gnu_test::try_named_locale("fr_FR@euro");
locale loc_de = __gnu_test::try_named_locale("de_DE");
VERIFY( loc_hk != loc_c );
- VERIFY( loc_hk != loc_fr );
VERIFY( loc_hk != loc_de );
- VERIFY( loc_de != loc_fr );
const tm time_bday = { 0, 0, 12, 4, 3, 71, 0, 93, 0 };
diff --git a/libstdc++-v3/testsuite/22_locale/time_get/get_monthname/wchar_t/4.cc b/libstdc++-v3/testsuite/22_locale/time_get/get_monthname/wchar_t/4.cc
new file mode 100644
index 0000000..dd1c393
--- /dev/null
+++ b/libstdc++-v3/testsuite/22_locale/time_get/get_monthname/wchar_t/4.cc
@@ -0,0 +1,59 @@
+// 2004-04-07 Paolo Carlini <pcarlini@suse.de>
+
+// Copyright (C) 2004 Free Software Foundation
+//
+// This file is part of the GNU ISO C++ Library. This library is free
+// software; you can redistribute it and/or modify it under the
+// terms of the GNU General Public License as published by the
+// Free Software Foundation; either version 2, or (at your option)
+// any later version.
+
+// This library is distributed in the hope that it will be useful,
+// but WITHOUT ANY WARRANTY; without even the implied warranty of
+// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+// GNU General Public License for more details.
+
+// You should have received a copy of the GNU General Public License along
+// with this library; see the file COPYING. If not, write to the Free
+// Software Foundation, 59 Temple Place - Suite 330, Boston, MA 02111-1307,
+// USA.
+
+// 22.2.5.1.1 time_get members
+
+#include <locale>
+#include <sstream>
+#include <testsuite_hooks.h>
+
+void test01()
+{
+ using namespace std;
+ bool test __attribute__((unused)) = true;
+
+ typedef istreambuf_iterator<wchar_t> iterator_type;
+
+ const ios_base::iostate good = ios_base::goodbit;
+ ios_base::iostate errorstate = good;
+
+ // basic construction
+ locale loc_c = locale::classic();
+
+ iterator_type end;
+ wistringstream iss;
+ iss.imbue(loc_c);
+ const time_get<wchar_t>& tim_get =
+ use_facet<time_get<wchar_t> >(iss.getloc());
+
+ iss.str(L"Jul");
+ iterator_type is_it01(iss);
+ tm time01;
+ errorstate = good;
+ tim_get.get_monthname(is_it01, end, iss, errorstate, &time01);
+ VERIFY( time01.tm_mon == 6 );
+ VERIFY( errorstate == ios_base::eofbit );
+}
+
+int main()
+{
+ test01();
+ return 0;
+}
diff --git a/libstdc++-v3/testsuite/22_locale/time_get/get_time/char/1.cc b/libstdc++-v3/testsuite/22_locale/time_get/get_time/char/1.cc
index c3b3bb1..adbc28e 100644
--- a/libstdc++-v3/testsuite/22_locale/time_get/get_time/char/1.cc
+++ b/libstdc++-v3/testsuite/22_locale/time_get/get_time/char/1.cc
@@ -1,6 +1,6 @@
// 2001-09-21 Benjamin Kosnik <bkoz@redhat.com>
-// Copyright (C) 2001, 2002, 2003 Free Software Foundation
+// Copyright (C) 2001, 2002, 2003, 2004 Free Software Foundation
//
// This file is part of the GNU ISO C++ Library. This library is free
// software; you can redistribute it and/or modify it under the
@@ -28,18 +28,13 @@ void test01()
{
using namespace std;
bool test __attribute__((unused)) = true;
- typedef time_base::dateorder dateorder;
+
typedef istreambuf_iterator<char> iterator_type;
// basic construction and sanity checks.
locale loc_c = locale::classic();
- locale loc_hk = __gnu_test::try_named_locale("en_HK");
- locale loc_fr = __gnu_test::try_named_locale("fr_FR@euro");
locale loc_de = __gnu_test::try_named_locale("de_DE");
- VERIFY( loc_hk != loc_c );
- VERIFY( loc_hk != loc_fr );
- VERIFY( loc_hk != loc_de );
- VERIFY( loc_de != loc_fr );
+ VERIFY( loc_de != loc_c );
const string empty;
diff --git a/libstdc++-v3/testsuite/22_locale/time_get/get_time/char/2.cc b/libstdc++-v3/testsuite/22_locale/time_get/get_time/char/2.cc
index 7341274..fccee27 100644
--- a/libstdc++-v3/testsuite/22_locale/time_get/get_time/char/2.cc
+++ b/libstdc++-v3/testsuite/22_locale/time_get/get_time/char/2.cc
@@ -1,6 +1,6 @@
// 2001-09-21 Benjamin Kosnik <bkoz@redhat.com>
-// Copyright (C) 2001, 2002, 2003 Free Software Foundation
+// Copyright (C) 2001, 2002, 2003, 2004 Free Software Foundation
//
// This file is part of the GNU ISO C++ Library. This library is free
// software; you can redistribute it and/or modify it under the
@@ -28,18 +28,13 @@ void test02()
{
using namespace std;
bool test __attribute__((unused)) = true;
- typedef time_base::dateorder dateorder;
+
typedef istreambuf_iterator<char> iterator_type;
- // basic construction and sanity checks.
+ // basic construction and sanity check
locale loc_c = locale::classic();
locale loc_hk = __gnu_test::try_named_locale("en_HK");
- locale loc_fr = __gnu_test::try_named_locale("fr_FR@euro");
- locale loc_de = __gnu_test::try_named_locale("de_DE");
VERIFY( loc_hk != loc_c );
- VERIFY( loc_hk != loc_fr );
- VERIFY( loc_hk != loc_de );
- VERIFY( loc_de != loc_fr );
const string empty;
const tm time_bday = { 0, 0, 12, 4, 3, 71, 0, 93, 0 };
diff --git a/libstdc++-v3/testsuite/22_locale/time_get/get_time/wchar_t/1.cc b/libstdc++-v3/testsuite/22_locale/time_get/get_time/wchar_t/1.cc
index f8d0bc6..f1b1c42 100644
--- a/libstdc++-v3/testsuite/22_locale/time_get/get_time/wchar_t/1.cc
+++ b/libstdc++-v3/testsuite/22_locale/time_get/get_time/wchar_t/1.cc
@@ -1,6 +1,6 @@
// 2001-09-21 Benjamin Kosnik <bkoz@redhat.com>
-// Copyright (C) 2001, 2002, 2003 Free Software Foundation
+// Copyright (C) 2001, 2002, 2003, 2004 Free Software Foundation
//
// This file is part of the GNU ISO C++ Library. This library is free
// software; you can redistribute it and/or modify it under the
@@ -28,18 +28,13 @@ void test01()
{
using namespace std;
bool test __attribute__((unused)) = true;
- typedef time_base::dateorder dateorder;
+
typedef istreambuf_iterator<wchar_t> iterator_type;
// basic construction and sanity checks.
locale loc_c = locale::classic();
- locale loc_hk = __gnu_test::try_named_locale("en_HK");
- locale loc_fr = __gnu_test::try_named_locale("fr_FR@euro");
locale loc_de = __gnu_test::try_named_locale("de_DE");
- VERIFY( loc_hk != loc_c );
- VERIFY( loc_hk != loc_fr );
- VERIFY( loc_hk != loc_de );
- VERIFY( loc_de != loc_fr );
+ VERIFY( loc_de != loc_c );
const wstring empty;
diff --git a/libstdc++-v3/testsuite/22_locale/time_get/get_time/wchar_t/2.cc b/libstdc++-v3/testsuite/22_locale/time_get/get_time/wchar_t/2.cc
index 8c75a6f..8b736d2 100644
--- a/libstdc++-v3/testsuite/22_locale/time_get/get_time/wchar_t/2.cc
+++ b/libstdc++-v3/testsuite/22_locale/time_get/get_time/wchar_t/2.cc
@@ -1,6 +1,6 @@
// 2001-09-21 Benjamin Kosnik <bkoz@redhat.com>
-// Copyright (C) 2001, 2002, 2003 Free Software Foundation
+// Copyright (C) 2001, 2002, 2003, 2004 Free Software Foundation
//
// This file is part of the GNU ISO C++ Library. This library is free
// software; you can redistribute it and/or modify it under the
@@ -28,18 +28,13 @@ void test02()
{
using namespace std;
bool test __attribute__((unused)) = true;
- typedef time_base::dateorder dateorder;
+
typedef istreambuf_iterator<wchar_t> iterator_type;
- // basic construction and sanity checks.
+ // basic construction and sanity check
locale loc_c = locale::classic();
locale loc_hk = __gnu_test::try_named_locale("en_HK");
- locale loc_fr = __gnu_test::try_named_locale("fr_FR@euro");
- locale loc_de = __gnu_test::try_named_locale("de_DE");
VERIFY( loc_hk != loc_c );
- VERIFY( loc_hk != loc_fr );
- VERIFY( loc_hk != loc_de );
- VERIFY( loc_de != loc_fr );
const wstring empty;
const tm time_bday = { 0, 0, 12, 4, 3, 71, 0, 93, 0 };
diff --git a/libstdc++-v3/testsuite/22_locale/time_get/get_weekday/char/1.cc b/libstdc++-v3/testsuite/22_locale/time_get/get_weekday/char/1.cc
index 9935921..85565e8 100644
--- a/libstdc++-v3/testsuite/22_locale/time_get/get_weekday/char/1.cc
+++ b/libstdc++-v3/testsuite/22_locale/time_get/get_weekday/char/1.cc
@@ -1,6 +1,6 @@
// 2001-09-21 Benjamin Kosnik <bkoz@redhat.com>
-// Copyright (C) 2001, 2002, 2003 Free Software Foundation
+// Copyright (C) 2001, 2002, 2003, 2004 Free Software Foundation
//
// This file is part of the GNU ISO C++ Library. This library is free
// software; you can redistribute it and/or modify it under the
@@ -27,20 +27,12 @@
void test01()
{
using namespace std;
- typedef time_base::dateorder dateorder;
- typedef istreambuf_iterator<char> iterator_type;
-
bool test __attribute__((unused)) = true;
- // basic construction and sanity checks.
+ typedef istreambuf_iterator<char> iterator_type;
+
+ // basic construction
locale loc_c = locale::classic();
- locale loc_hk = __gnu_test::try_named_locale("en_HK");
- locale loc_fr = __gnu_test::try_named_locale("fr_FR@euro");
- locale loc_de = __gnu_test::try_named_locale("de_DE");
- VERIFY( loc_hk != loc_c );
- VERIFY( loc_hk != loc_fr );
- VERIFY( loc_hk != loc_de );
- VERIFY( loc_de != loc_fr );
const string empty;
diff --git a/libstdc++-v3/testsuite/22_locale/time_get/get_weekday/char/2.cc b/libstdc++-v3/testsuite/22_locale/time_get/get_weekday/char/2.cc
index 93151df..27a37be 100644
--- a/libstdc++-v3/testsuite/22_locale/time_get/get_weekday/char/2.cc
+++ b/libstdc++-v3/testsuite/22_locale/time_get/get_weekday/char/2.cc
@@ -1,6 +1,6 @@
// 2001-09-21 Benjamin Kosnik <bkoz@redhat.com>
-// Copyright (C) 2001, 2002, 2003 Free Software Foundation
+// Copyright (C) 2001, 2002, 2003, 2004 Free Software Foundation
//
// This file is part of the GNU ISO C++ Library. This library is free
// software; you can redistribute it and/or modify it under the
@@ -26,21 +26,17 @@
void test02()
{
- using namespace std;
- typedef time_base::dateorder dateorder;
- typedef istreambuf_iterator<char> iterator_type;
-
+ using namespace std;
bool test __attribute__((unused)) = true;
+ typedef istreambuf_iterator<char> iterator_type;
+
// basic construction and sanity checks.
locale loc_c = locale::classic();
locale loc_hk = __gnu_test::try_named_locale("en_HK");
- locale loc_fr = __gnu_test::try_named_locale("fr_FR@euro");
locale loc_de = __gnu_test::try_named_locale("de_DE");
VERIFY( loc_hk != loc_c );
- VERIFY( loc_hk != loc_fr );
VERIFY( loc_hk != loc_de );
- VERIFY( loc_de != loc_fr );
const string empty;
diff --git a/libstdc++-v3/testsuite/22_locale/time_get/get_weekday/wchar_t/1.cc b/libstdc++-v3/testsuite/22_locale/time_get/get_weekday/wchar_t/1.cc
index 782b4e7..67efe26 100644
--- a/libstdc++-v3/testsuite/22_locale/time_get/get_weekday/wchar_t/1.cc
+++ b/libstdc++-v3/testsuite/22_locale/time_get/get_weekday/wchar_t/1.cc
@@ -1,6 +1,6 @@
// 2001-09-21 Benjamin Kosnik <bkoz@redhat.com>
-// Copyright (C) 2001, 2002, 2003 Free Software Foundation
+// Copyright (C) 2001, 2002, 2003, 2004 Free Software Foundation
//
// This file is part of the GNU ISO C++ Library. This library is free
// software; you can redistribute it and/or modify it under the
@@ -27,20 +27,12 @@
void test01()
{
using namespace std;
- typedef time_base::dateorder dateorder;
- typedef istreambuf_iterator<wchar_t> iterator_type;
-
bool test __attribute__((unused)) = true;
- // basic construction and sanity checks.
+ typedef istreambuf_iterator<wchar_t> iterator_type;
+
+ // basic construction
locale loc_c = locale::classic();
- locale loc_hk = __gnu_test::try_named_locale("en_HK");
- locale loc_fr = __gnu_test::try_named_locale("fr_FR@euro");
- locale loc_de = __gnu_test::try_named_locale("de_DE");
- VERIFY( loc_hk != loc_c );
- VERIFY( loc_hk != loc_fr );
- VERIFY( loc_hk != loc_de );
- VERIFY( loc_de != loc_fr );
const wstring empty;
diff --git a/libstdc++-v3/testsuite/22_locale/time_get/get_weekday/wchar_t/2.cc b/libstdc++-v3/testsuite/22_locale/time_get/get_weekday/wchar_t/2.cc
index 1bf9897..ba86a67 100644
--- a/libstdc++-v3/testsuite/22_locale/time_get/get_weekday/wchar_t/2.cc
+++ b/libstdc++-v3/testsuite/22_locale/time_get/get_weekday/wchar_t/2.cc
@@ -26,21 +26,17 @@
void test02()
{
- using namespace std;
- typedef time_base::dateorder dateorder;
- typedef istreambuf_iterator<wchar_t> iterator_type;
-
+ using namespace std;
bool test __attribute__((unused)) = true;
+ typedef istreambuf_iterator<wchar_t> iterator_type;
+
// basic construction and sanity checks.
locale loc_c = locale::classic();
locale loc_hk = __gnu_test::try_named_locale("en_HK");
- locale loc_fr = __gnu_test::try_named_locale("fr_FR@euro");
locale loc_de = __gnu_test::try_named_locale("de_DE");
VERIFY( loc_hk != loc_c );
- VERIFY( loc_hk != loc_fr );
VERIFY( loc_hk != loc_de );
- VERIFY( loc_de != loc_fr );
const wstring empty;
diff --git a/libstdc++-v3/testsuite/22_locale/time_get/get_year/char/1.cc b/libstdc++-v3/testsuite/22_locale/time_get/get_year/char/1.cc
index 1ae3d4e..e558cba 100644
--- a/libstdc++-v3/testsuite/22_locale/time_get/get_year/char/1.cc
+++ b/libstdc++-v3/testsuite/22_locale/time_get/get_year/char/1.cc
@@ -1,6 +1,6 @@
// 2001-09-21 Benjamin Kosnik <bkoz@redhat.com>
-// Copyright (C) 2001, 2002, 2003 Free Software Foundation
+// Copyright (C) 2001, 2002, 2003, 2004 Free Software Foundation
//
// This file is part of the GNU ISO C++ Library. This library is free
// software; you can redistribute it and/or modify it under the
@@ -27,20 +27,12 @@
void test01()
{
using namespace std;
- typedef time_base::dateorder dateorder;
- typedef istreambuf_iterator<char> iterator_type;
-
bool test __attribute__((unused)) = true;
- // basic construction and sanity checks.
+ typedef istreambuf_iterator<char> iterator_type;
+
+ // basic construction
locale loc_c = locale::classic();
- locale loc_hk = __gnu_test::try_named_locale("en_HK");
- locale loc_fr = __gnu_test::try_named_locale("fr_FR@euro");
- locale loc_de = __gnu_test::try_named_locale("de_DE");
- VERIFY( loc_hk != loc_c );
- VERIFY( loc_hk != loc_fr );
- VERIFY( loc_hk != loc_de );
- VERIFY( loc_de != loc_fr );
const string empty;
diff --git a/libstdc++-v3/testsuite/22_locale/time_get/get_year/wchar_t/1.cc b/libstdc++-v3/testsuite/22_locale/time_get/get_year/wchar_t/1.cc
index 578d18f..0724930 100644
--- a/libstdc++-v3/testsuite/22_locale/time_get/get_year/wchar_t/1.cc
+++ b/libstdc++-v3/testsuite/22_locale/time_get/get_year/wchar_t/1.cc
@@ -1,6 +1,6 @@
// 2001-09-21 Benjamin Kosnik <bkoz@redhat.com>
-// Copyright (C) 2001, 2002, 2003 Free Software Foundation
+// Copyright (C) 2001, 2002, 2003, 2004 Free Software Foundation
//
// This file is part of the GNU ISO C++ Library. This library is free
// software; you can redistribute it and/or modify it under the
@@ -27,20 +27,12 @@
void test01()
{
using namespace std;
- typedef time_base::dateorder dateorder;
- typedef istreambuf_iterator<wchar_t> iterator_type;
-
bool test __attribute__((unused)) = true;
- // basic construction and sanity checks.
+ typedef istreambuf_iterator<wchar_t> iterator_type;
+
+ // basic construction
locale loc_c = locale::classic();
- locale loc_hk = __gnu_test::try_named_locale("en_HK");
- locale loc_fr = __gnu_test::try_named_locale("fr_FR@euro");
- locale loc_de = __gnu_test::try_named_locale("de_DE");
- VERIFY( loc_hk != loc_c );
- VERIFY( loc_hk != loc_fr );
- VERIFY( loc_hk != loc_de );
- VERIFY( loc_de != loc_fr );
const wstring empty;
diff --git a/libstdc++-v3/testsuite/22_locale/time_put/put/char/1.cc b/libstdc++-v3/testsuite/22_locale/time_put/put/char/1.cc
index 471806c..a178544 100644
--- a/libstdc++-v3/testsuite/22_locale/time_put/put/char/1.cc
+++ b/libstdc++-v3/testsuite/22_locale/time_put/put/char/1.cc
@@ -1,6 +1,6 @@
// 2001-09-17 Benjamin Kosnik <bkoz@redhat.com>
-// Copyright (C) 2001, 2002, 2003 Free Software Foundation
+// Copyright (C) 2001, 2002, 2003, 2004 Free Software Foundation
//
// This file is part of the GNU ISO C++ Library. This library is free
// software; you can redistribute it and/or modify it under the
@@ -34,15 +34,8 @@ void test01()
// create "C" time objects
tm time1 = { 0, 0, 12, 4, 3, 71, 0, 93, 0 };
- // basic construction and sanity checks.
+ // basic construction
locale loc_c = locale::classic();
- locale loc_hk = __gnu_test::try_named_locale("en_HK");
- locale loc_fr = __gnu_test::try_named_locale("fr_FR@euro");
- locale loc_de = __gnu_test::try_named_locale("de_DE");
- VERIFY( loc_hk != loc_c );
- VERIFY( loc_hk != loc_fr );
- VERIFY( loc_hk != loc_de );
- VERIFY( loc_de != loc_fr );
// create an ostream-derived object, cache the time_put facet
const string empty;
diff --git a/libstdc++-v3/testsuite/22_locale/time_put/put/char/2.cc b/libstdc++-v3/testsuite/22_locale/time_put/put/char/2.cc
index 03f5b7d..d7dad7f 100644
--- a/libstdc++-v3/testsuite/22_locale/time_put/put/char/2.cc
+++ b/libstdc++-v3/testsuite/22_locale/time_put/put/char/2.cc
@@ -1,6 +1,6 @@
// 2001-09-17 Benjamin Kosnik <bkoz@redhat.com>
-// Copyright (C) 2001, 2002, 2003 Free Software Foundation
+// Copyright (C) 2001, 2002, 2003, 2004 Free Software Foundation
//
// This file is part of the GNU ISO C++ Library. This library is free
// software; you can redistribute it and/or modify it under the
@@ -31,18 +31,13 @@ void test02()
bool test __attribute__((unused)) = true;
- // create "C" time objects
+ // create "C" time object
tm time1 = { 0, 0, 12, 4, 3, 71, 0, 93, 0 };
- // basic construction and sanity checks.
+ // basic construction and sanity check
locale loc_c = locale::classic();
- locale loc_hk = __gnu_test::try_named_locale("en_HK");
- locale loc_fr = __gnu_test::try_named_locale("fr_FR@euro");
locale loc_de = __gnu_test::try_named_locale("de_DE");
- VERIFY( loc_hk != loc_c );
- VERIFY( loc_hk != loc_fr );
- VERIFY( loc_hk != loc_de );
- VERIFY( loc_de != loc_fr );
+ VERIFY( loc_de != loc_c );
// create an ostream-derived object, cache the time_put facet
const string empty;
diff --git a/libstdc++-v3/testsuite/22_locale/time_put/put/char/3.cc b/libstdc++-v3/testsuite/22_locale/time_put/put/char/3.cc
index 1263374..8124107 100644
--- a/libstdc++-v3/testsuite/22_locale/time_put/put/char/3.cc
+++ b/libstdc++-v3/testsuite/22_locale/time_put/put/char/3.cc
@@ -1,6 +1,6 @@
// 2001-09-17 Benjamin Kosnik <bkoz@redhat.com>
-// Copyright (C) 2001, 2002, 2003 Free Software Foundation
+// Copyright (C) 2001, 2002, 2003, 2004 Free Software Foundation
//
// This file is part of the GNU ISO C++ Library. This library is free
// software; you can redistribute it and/or modify it under the
@@ -34,15 +34,10 @@ void test03()
// create "C" time objects
tm time1 = { 0, 0, 12, 4, 3, 71, 0, 93, 0 };
- // basic construction and sanity checks.
+ // basic construction and sanity check.
locale loc_c = locale::classic();
locale loc_hk = __gnu_test::try_named_locale("en_HK");
- locale loc_fr = __gnu_test::try_named_locale("fr_FR@euro");
- locale loc_de = __gnu_test::try_named_locale("de_DE");
VERIFY( loc_hk != loc_c );
- VERIFY( loc_hk != loc_fr );
- VERIFY( loc_hk != loc_de );
- VERIFY( loc_de != loc_fr );
// create an ostream-derived object, cache the time_put facet
const string empty;
diff --git a/libstdc++-v3/testsuite/22_locale/time_put/put/char/4.cc b/libstdc++-v3/testsuite/22_locale/time_put/put/char/4.cc
index 3a99df3..7640fc0 100644
--- a/libstdc++-v3/testsuite/22_locale/time_put/put/char/4.cc
+++ b/libstdc++-v3/testsuite/22_locale/time_put/put/char/4.cc
@@ -1,6 +1,6 @@
// 2001-09-17 Benjamin Kosnik <bkoz@redhat.com>
-// Copyright (C) 2001, 2002, 2003 Free Software Foundation
+// Copyright (C) 2001, 2002, 2003, 2004 Free Software Foundation
//
// This file is part of the GNU ISO C++ Library. This library is free
// software; you can redistribute it and/or modify it under the
@@ -34,15 +34,10 @@ void test04()
// create "C" time objects
tm time1 = { 0, 0, 12, 4, 3, 71, 0, 93, 0 };
- // basic construction and sanity checks.
+ // basic construction and sanity check
locale loc_c = locale::classic();
- locale loc_hk = __gnu_test::try_named_locale("en_HK");
locale loc_fr = __gnu_test::try_named_locale("fr_FR@euro");
- locale loc_de = __gnu_test::try_named_locale("de_DE");
- VERIFY( loc_hk != loc_c );
- VERIFY( loc_hk != loc_fr );
- VERIFY( loc_hk != loc_de );
- VERIFY( loc_de != loc_fr );
+ VERIFY( loc_fr != loc_c );
// create an ostream-derived object, cache the time_put facet
const string empty;
diff --git a/libstdc++-v3/testsuite/22_locale/time_put/put/char/5.cc b/libstdc++-v3/testsuite/22_locale/time_put/put/char/5.cc
index 64ca142..348ca8f 100644
--- a/libstdc++-v3/testsuite/22_locale/time_put/put/char/5.cc
+++ b/libstdc++-v3/testsuite/22_locale/time_put/put/char/5.cc
@@ -1,6 +1,6 @@
// 2001-09-17 Benjamin Kosnik <bkoz@redhat.com>
-// Copyright (C) 2001, 2002, 2003 Free Software Foundation
+// Copyright (C) 2001, 2002, 2003, 2004 Free Software Foundation
//
// This file is part of the GNU ISO C++ Library. This library is free
// software; you can redistribute it and/or modify it under the
@@ -37,21 +37,14 @@ void test05()
const char* date = "%A, the second of %B";
const char* date_ex = "%Ex";
- // basic construction and sanity checks.
+ // basic construction
locale loc_c = locale::classic();
- locale loc_hk = __gnu_test::try_named_locale("en_HK");
- locale loc_fr = __gnu_test::try_named_locale("fr_FR@euro");
- locale loc_de = __gnu_test::try_named_locale("de_DE");
- VERIFY( loc_hk != loc_c );
- VERIFY( loc_hk != loc_fr );
- VERIFY( loc_hk != loc_de );
- VERIFY( loc_de != loc_fr );
// create an ostream-derived object, cache the time_put facet
const string empty;
ostringstream oss;
oss.imbue(loc_c);
- const time_put<char>& tim_put = use_facet<time_put<char> >(oss.getloc());
+ const time_put<char>& tim_put = use_facet<time_put<char> >(oss.getloc());
// 2
oss.str(empty);
diff --git a/libstdc++-v3/testsuite/22_locale/time_put/put/char/6.cc b/libstdc++-v3/testsuite/22_locale/time_put/put/char/6.cc
index 53baf21..f840713 100644
--- a/libstdc++-v3/testsuite/22_locale/time_put/put/char/6.cc
+++ b/libstdc++-v3/testsuite/22_locale/time_put/put/char/6.cc
@@ -1,6 +1,6 @@
// 2001-09-17 Benjamin Kosnik <bkoz@redhat.com>
-// Copyright (C) 2001, 2002, 2003 Free Software Foundation
+// Copyright (C) 2001, 2002, 2003, 2004 Free Software Foundation
//
// This file is part of the GNU ISO C++ Library. This library is free
// software; you can redistribute it and/or modify it under the
@@ -37,15 +37,10 @@ void test06()
const char* date = "%A, the second of %B";
const char* date_ex = "%Ex";
- // basic construction and sanity checks.
+ // basic construction and sanity check
locale loc_c = locale::classic();
- locale loc_hk = __gnu_test::try_named_locale("en_HK");
- locale loc_fr = __gnu_test::try_named_locale("fr_FR@euro");
locale loc_de = __gnu_test::try_named_locale("de_DE");
- VERIFY( loc_hk != loc_c );
- VERIFY( loc_hk != loc_fr );
- VERIFY( loc_hk != loc_de );
- VERIFY( loc_de != loc_fr );
+ VERIFY( loc_de != loc_c );
// create an ostream-derived object, cache the time_put facet
const string empty;
diff --git a/libstdc++-v3/testsuite/22_locale/time_put/put/char/7.cc b/libstdc++-v3/testsuite/22_locale/time_put/put/char/7.cc
index e8aeea2..799cf43 100644
--- a/libstdc++-v3/testsuite/22_locale/time_put/put/char/7.cc
+++ b/libstdc++-v3/testsuite/22_locale/time_put/put/char/7.cc
@@ -1,6 +1,6 @@
// 2001-09-17 Benjamin Kosnik <bkoz@redhat.com>
-// Copyright (C) 2001, 2002, 2003 Free Software Foundation
+// Copyright (C) 2001, 2002, 2003, 2004 Free Software Foundation
//
// This file is part of the GNU ISO C++ Library. This library is free
// software; you can redistribute it and/or modify it under the
@@ -37,16 +37,10 @@ void test07()
const char* date = "%A, the second of %B";
const char* date_ex = "%Ex";
-
- // basic construction and sanity checks.
+ // basic construction and sanity check
locale loc_c = locale::classic();
locale loc_hk = __gnu_test::try_named_locale("en_HK");
- locale loc_fr = __gnu_test::try_named_locale("fr_FR@euro");
- locale loc_de = __gnu_test::try_named_locale("de_DE");
VERIFY( loc_hk != loc_c );
- VERIFY( loc_hk != loc_fr );
- VERIFY( loc_hk != loc_de );
- VERIFY( loc_de != loc_fr );
// create an ostream-derived object, cache the time_put facet
const string empty;
diff --git a/libstdc++-v3/testsuite/22_locale/time_put/put/char/8.cc b/libstdc++-v3/testsuite/22_locale/time_put/put/char/8.cc
index b940f2a..d54380f 100644
--- a/libstdc++-v3/testsuite/22_locale/time_put/put/char/8.cc
+++ b/libstdc++-v3/testsuite/22_locale/time_put/put/char/8.cc
@@ -1,6 +1,6 @@
// 2001-09-17 Benjamin Kosnik <bkoz@redhat.com>
-// Copyright (C) 2001, 2002, 2003 Free Software Foundation
+// Copyright (C) 2001, 2002, 2003, 2004 Free Software Foundation
//
// This file is part of the GNU ISO C++ Library. This library is free
// software; you can redistribute it and/or modify it under the
@@ -37,15 +37,10 @@ void test08()
const char* date = "%A, the second of %B";
const char* date_ex = "%Ex";
- // basic construction and sanity checks.
+ // basic construction and sanity check
locale loc_c = locale::classic();
- locale loc_hk = __gnu_test::try_named_locale("en_HK");
locale loc_fr = __gnu_test::try_named_locale("fr_FR@euro");
- locale loc_de = __gnu_test::try_named_locale("de_DE");
- VERIFY( loc_hk != loc_c );
- VERIFY( loc_hk != loc_fr );
- VERIFY( loc_hk != loc_de );
- VERIFY( loc_de != loc_fr );
+ VERIFY( loc_fr != loc_c );
// create an ostream-derived object, cache the time_put facet
const string empty;
diff --git a/libstdc++-v3/testsuite/22_locale/time_put/put/char/9780-1.cc b/libstdc++-v3/testsuite/22_locale/time_put/put/char/9780-1.cc
index bd7fe40..715000e 100644
--- a/libstdc++-v3/testsuite/22_locale/time_put/put/char/9780-1.cc
+++ b/libstdc++-v3/testsuite/22_locale/time_put/put/char/9780-1.cc
@@ -61,7 +61,7 @@ int main()
/*
The problems with the first approach, as above, are numerous.
-1) Then locale usage and design for formatters and parers becomes
+1) The locale usage and design for formatters and parsers becomes
fragmented. On one side, num_put and money_put, and on the other,
time_put. This inconsistency is not useful.
@@ -79,7 +79,7 @@ The problems with the first approach, as above, are numerous.
time_put<charT,OutputIterator> provide date and time formatting and
parsing. All specifications of member functions for time_put and
time_get in the subclauses of lib.category.time only apply to the
- instantiations required in Tables ?? and ??
+ instantiations required in Tables 51 and 52
(lib.locale.category). Their members use their ios_base&,
ios_base::iostate&, and fill arguments as described in
(lib.locale.categories), and the ctype<> facet, to determine
diff --git a/libstdc++-v3/testsuite/22_locale/time_put/put/wchar_t/1.cc b/libstdc++-v3/testsuite/22_locale/time_put/put/wchar_t/1.cc
index 9f1b11d..f9d91de 100644
--- a/libstdc++-v3/testsuite/22_locale/time_put/put/wchar_t/1.cc
+++ b/libstdc++-v3/testsuite/22_locale/time_put/put/wchar_t/1.cc
@@ -1,6 +1,6 @@
// 2001-09-17 Benjamin Kosnik <bkoz@redhat.com>
-// Copyright (C) 2001, 2002, 2003 Free Software Foundation
+// Copyright (C) 2001, 2002, 2003, 2004 Free Software Foundation
//
// This file is part of the GNU ISO C++ Library. This library is free
// software; you can redistribute it and/or modify it under the
@@ -34,15 +34,8 @@ void test01()
// create "C" time objects
tm time1 = { 0, 0, 12, 4, 3, 71, 0, 93, 0 };
- // basic construction and sanity checks.
+ // basic construction
locale loc_c = locale::classic();
- locale loc_hk = __gnu_test::try_named_locale("en_HK");
- locale loc_fr = __gnu_test::try_named_locale("fr_FR@euro");
- locale loc_de = __gnu_test::try_named_locale("de_DE");
- VERIFY( loc_hk != loc_c );
- VERIFY( loc_hk != loc_fr );
- VERIFY( loc_hk != loc_de );
- VERIFY( loc_de != loc_fr );
// create an ostream-derived object, cache the time_put facet
const wstring empty;
diff --git a/libstdc++-v3/testsuite/22_locale/time_put/put/wchar_t/2.cc b/libstdc++-v3/testsuite/22_locale/time_put/put/wchar_t/2.cc
index d056bb3..8c85fdb 100644
--- a/libstdc++-v3/testsuite/22_locale/time_put/put/wchar_t/2.cc
+++ b/libstdc++-v3/testsuite/22_locale/time_put/put/wchar_t/2.cc
@@ -1,6 +1,6 @@
// 2001-09-17 Benjamin Kosnik <bkoz@redhat.com>
-// Copyright (C) 2001, 2002, 2003 Free Software Foundation
+// Copyright (C) 2001, 2002, 2003, 2004 Free Software Foundation
//
// This file is part of the GNU ISO C++ Library. This library is free
// software; you can redistribute it and/or modify it under the
@@ -34,15 +34,10 @@ void test02()
// create "C" time objects
tm time1 = { 0, 0, 12, 4, 3, 71, 0, 93, 0 };
- // basic construction and sanity checks.
+ // basic construction and sanity check
locale loc_c = locale::classic();
- locale loc_hk = __gnu_test::try_named_locale("en_HK");
- locale loc_fr = __gnu_test::try_named_locale("fr_FR@euro");
locale loc_de = __gnu_test::try_named_locale("de_DE");
- VERIFY( loc_hk != loc_c );
- VERIFY( loc_hk != loc_fr );
- VERIFY( loc_hk != loc_de );
- VERIFY( loc_de != loc_fr );
+ VERIFY( loc_de != loc_c );
// create an ostream-derived object, cache the time_put facet
const wstring empty;
diff --git a/libstdc++-v3/testsuite/22_locale/time_put/put/wchar_t/3.cc b/libstdc++-v3/testsuite/22_locale/time_put/put/wchar_t/3.cc
index 06d51d9..0aae0e22 100644
--- a/libstdc++-v3/testsuite/22_locale/time_put/put/wchar_t/3.cc
+++ b/libstdc++-v3/testsuite/22_locale/time_put/put/wchar_t/3.cc
@@ -1,6 +1,6 @@
// 2001-09-17 Benjamin Kosnik <bkoz@redhat.com>
-// Copyright (C) 2001, 2002, 2003 Free Software Foundation
+// Copyright (C) 2001, 2002, 2003, 2004 Free Software Foundation
//
// This file is part of the GNU ISO C++ Library. This library is free
// software; you can redistribute it and/or modify it under the
@@ -34,15 +34,10 @@ void test03()
// create "C" time objects
tm time1 = { 0, 0, 12, 4, 3, 71, 0, 93, 0 };
- // basic construction and sanity checks.
+ // basic construction and sanity check
locale loc_c = locale::classic();
locale loc_hk = __gnu_test::try_named_locale("en_HK");
- locale loc_fr = __gnu_test::try_named_locale("fr_FR@euro");
- locale loc_de = __gnu_test::try_named_locale("de_DE");
VERIFY( loc_hk != loc_c );
- VERIFY( loc_hk != loc_fr );
- VERIFY( loc_hk != loc_de );
- VERIFY( loc_de != loc_fr );
// create an ostream-derived object, cache the time_put facet
const wstring empty;
diff --git a/libstdc++-v3/testsuite/22_locale/time_put/put/wchar_t/4.cc b/libstdc++-v3/testsuite/22_locale/time_put/put/wchar_t/4.cc
index 4a8b27b..e653794 100644
--- a/libstdc++-v3/testsuite/22_locale/time_put/put/wchar_t/4.cc
+++ b/libstdc++-v3/testsuite/22_locale/time_put/put/wchar_t/4.cc
@@ -1,6 +1,6 @@
// 2001-09-17 Benjamin Kosnik <bkoz@redhat.com>
-// Copyright (C) 2001, 2002, 2003 Free Software Foundation
+// Copyright (C) 2001, 2002, 2003, 2004 Free Software Foundation
//
// This file is part of the GNU ISO C++ Library. This library is free
// software; you can redistribute it and/or modify it under the
@@ -34,15 +34,10 @@ void test04()
// create "C" time objects
tm time1 = { 0, 0, 12, 4, 3, 71, 0, 93, 0 };
- // basic construction and sanity checks.
+ // basic construction and sanity check
locale loc_c = locale::classic();
- locale loc_hk = __gnu_test::try_named_locale("en_HK");
locale loc_fr = __gnu_test::try_named_locale("fr_FR@euro");
- locale loc_de = __gnu_test::try_named_locale("de_DE");
- VERIFY( loc_hk != loc_c );
- VERIFY( loc_hk != loc_fr );
- VERIFY( loc_hk != loc_de );
- VERIFY( loc_de != loc_fr );
+ VERIFY( loc_fr != loc_c );
// create an ostream-derived object, cache the time_put facet
const wstring empty;
diff --git a/libstdc++-v3/testsuite/22_locale/time_put/put/wchar_t/5.cc b/libstdc++-v3/testsuite/22_locale/time_put/put/wchar_t/5.cc
index 0a65f3a..2cc6fd8 100644
--- a/libstdc++-v3/testsuite/22_locale/time_put/put/wchar_t/5.cc
+++ b/libstdc++-v3/testsuite/22_locale/time_put/put/wchar_t/5.cc
@@ -1,6 +1,6 @@
// 2001-09-17 Benjamin Kosnik <bkoz@redhat.com>
-// Copyright (C) 2001, 2002, 2003 Free Software Foundation
+// Copyright (C) 2001, 2002, 2003, 2004 Free Software Foundation
//
// This file is part of the GNU ISO C++ Library. This library is free
// software; you can redistribute it and/or modify it under the
@@ -37,15 +37,8 @@ void test05()
const wchar_t* date = L"%A, the second of %B";
const wchar_t* date_ex = L"%Ex";
- // basic construction and sanity checks.
+ // basic construction
locale loc_c = locale::classic();
- locale loc_hk = __gnu_test::try_named_locale("en_HK");
- locale loc_fr = __gnu_test::try_named_locale("fr_FR@euro");
- locale loc_de = __gnu_test::try_named_locale("de_DE");
- VERIFY( loc_hk != loc_c );
- VERIFY( loc_hk != loc_fr );
- VERIFY( loc_hk != loc_de );
- VERIFY( loc_de != loc_fr );
// create an ostream-derived object, cache the time_put facet
const wstring empty;
diff --git a/libstdc++-v3/testsuite/22_locale/time_put/put/wchar_t/6.cc b/libstdc++-v3/testsuite/22_locale/time_put/put/wchar_t/6.cc
index f4755bd..f75114f 100644
--- a/libstdc++-v3/testsuite/22_locale/time_put/put/wchar_t/6.cc
+++ b/libstdc++-v3/testsuite/22_locale/time_put/put/wchar_t/6.cc
@@ -1,6 +1,6 @@
// 2001-09-17 Benjamin Kosnik <bkoz@redhat.com>
-// Copyright (C) 2001, 2002, 2003 Free Software Foundation
+// Copyright (C) 2001, 2002, 2003, 2004 Free Software Foundation
//
// This file is part of the GNU ISO C++ Library. This library is free
// software; you can redistribute it and/or modify it under the
@@ -37,15 +37,10 @@ void test06()
const wchar_t* date = L"%A, the second of %B";
const wchar_t* date_ex = L"%Ex";
- // basic construction and sanity checks.
+ // basic construction and sanity check
locale loc_c = locale::classic();
- locale loc_hk = __gnu_test::try_named_locale("en_HK");
- locale loc_fr = __gnu_test::try_named_locale("fr_FR@euro");
locale loc_de = __gnu_test::try_named_locale("de_DE");
- VERIFY( loc_hk != loc_c );
- VERIFY( loc_hk != loc_fr );
- VERIFY( loc_hk != loc_de );
- VERIFY( loc_de != loc_fr );
+ VERIFY( loc_de != loc_c );
// create an ostream-derived object, cache the time_put facet
const wstring empty;
diff --git a/libstdc++-v3/testsuite/22_locale/time_put/put/wchar_t/7.cc b/libstdc++-v3/testsuite/22_locale/time_put/put/wchar_t/7.cc
index 99faf61..6afe4fc 100644
--- a/libstdc++-v3/testsuite/22_locale/time_put/put/wchar_t/7.cc
+++ b/libstdc++-v3/testsuite/22_locale/time_put/put/wchar_t/7.cc
@@ -1,6 +1,6 @@
// 2001-09-17 Benjamin Kosnik <bkoz@redhat.com>
-// Copyright (C) 2001, 2002, 2003 Free Software Foundation
+// Copyright (C) 2001, 2002, 2003, 2004 Free Software Foundation
//
// This file is part of the GNU ISO C++ Library. This library is free
// software; you can redistribute it and/or modify it under the
@@ -37,15 +37,10 @@ void test07()
const wchar_t* date = L"%A, the second of %B";
const wchar_t* date_ex = L"%Ex";
- // basic construction and sanity checks.
+ // basic construction and sanity check
locale loc_c = locale::classic();
locale loc_hk = __gnu_test::try_named_locale("en_HK");
- locale loc_fr = __gnu_test::try_named_locale("fr_FR@euro");
- locale loc_de = __gnu_test::try_named_locale("de_DE");
VERIFY( loc_hk != loc_c );
- VERIFY( loc_hk != loc_fr );
- VERIFY( loc_hk != loc_de );
- VERIFY( loc_de != loc_fr );
// create an ostream-derived object, cache the time_put facet
const wstring empty;
diff --git a/libstdc++-v3/testsuite/22_locale/time_put/put/wchar_t/8.cc b/libstdc++-v3/testsuite/22_locale/time_put/put/wchar_t/8.cc
index 0a7ff3c..10e8da4 100644
--- a/libstdc++-v3/testsuite/22_locale/time_put/put/wchar_t/8.cc
+++ b/libstdc++-v3/testsuite/22_locale/time_put/put/wchar_t/8.cc
@@ -1,6 +1,6 @@
// 2001-09-17 Benjamin Kosnik <bkoz@redhat.com>
-// Copyright (C) 2001, 2002, 2003 Free Software Foundation
+// Copyright (C) 2001, 2002, 2003, 2004 Free Software Foundation
//
// This file is part of the GNU ISO C++ Library. This library is free
// software; you can redistribute it and/or modify it under the
@@ -37,15 +37,10 @@ void test08()
const wchar_t* date = L"%A, the second of %B";
const wchar_t* date_ex = L"%Ex";
- // basic construction and sanity checks.
+ // basic construction and sanity check
locale loc_c = locale::classic();
- locale loc_hk = __gnu_test::try_named_locale("en_HK");
locale loc_fr = __gnu_test::try_named_locale("fr_FR@euro");
- locale loc_de = __gnu_test::try_named_locale("de_DE");
- VERIFY( loc_hk != loc_c );
- VERIFY( loc_hk != loc_fr );
- VERIFY( loc_hk != loc_de );
- VERIFY( loc_de != loc_fr );
+ VERIFY( loc_fr != loc_c );
// create an ostream-derived object, cache the time_put facet
const wstring empty;