This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug libstdc++/36616] Open issues from a test run
- From: "hjl dot tools at gmail dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 28 Jun 2008 14:21:31 -0000
- Subject: [Bug libstdc++/36616] Open issues from a test run
- References: <bug-36616-15245@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #16 from hjl dot tools at gmail dot com 2008-06-28 14:21 -------
I never saw those failures on Fedora 9. 22_locale/time_put/put/char/4.cc
change is
@@ -48,12 +49,20 @@ void test04()
const time_put<char>& tim_put = use_facet<time_put<char> >(oss.getloc());
iterator_type os_it04 = tim_put.put(oss.rdbuf(), oss, '*', &time1, 'a');
string result4 = oss.str();
+#if __GLIBC__ > 2 || (__GLIBC__ == 2 && __GLIBC_MINOR__ > 7)
+ VERIFY( result4 == "dim." );
+#else
VERIFY( result4 == "dim" );
+#endif
oss.str(empty); // "%d.%m.%Y"
iterator_type os_it27 = tim_put.put(oss.rdbuf(), oss, '*', &time1, 'x');
- string result27 = oss.str(); // "04.04.1971"
+ string result27 = oss.str();
+#if __GLIBC__ > 2 || (__GLIBC__ == 2 && __GLIBC_MINOR__ > 7)
+ VERIFY( result27 == "04/04/1971" );
+#else
VERIFY( result27 == "04.04.1971" );
+#endif
oss.str(empty); // "%T"
iterator_type os_it28 = tim_put.put(oss.rdbuf(), oss, '*', &time1, 'X');
@@ -62,8 +71,12 @@ void test04()
oss.str(empty);
iterator_type os_it37 = tim_put.put(oss.rdbuf(), oss, '*', &time1, 'x',
'E');
- string result37 = oss.str(); // "04.04.1971"
+ string result37 = oss.str();
+#if __GLIBC__ > 2 || (__GLIBC__ == 2 && __GLIBC_MINOR__ > 7)
+ VERIFY( result37 == "04/04/1971" );
+#else
VERIFY( result37 == "04.04.1971" );
+#endif
oss.str(empty);
iterator_type os_it38 = tim_put.put(oss.rdbuf(), oss, '*', &time1, 'X',
'E');
bash-3.2$ rpm -q glibc
glibc-2.8-3.x86_64
glibc-2.8-3.i686
bash-3.2$ date +%d.%m.%Y
28.06.2008
bash-3.2$
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=36616