This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug libstdc++/26701] std::time_get parses only 2 digits of year, in en_GB locale.
- From: "murrayc at murrayc dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 15 Mar 2006 18:02:13 -0000
- Subject: [Bug libstdc++/26701] std::time_get parses only 2 digits of year, in en_GB locale.
- References: <bug-26701-8548@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #6 from murrayc at murrayc dot com 2006-03-15 18:02 -------
Admittedly the libstdc++ time_get::get_date() documentation does say that it
interprets it according to format "X", and now I understand what it meant. I
was looking at the dinkumware and roguewave documentation.
I have just looked at the C++ standard, and you are right:
"Each get member parses a format as produced by a corresponding format
specifier to time_put<>::put.
"
"
"In other words, user confirmation is required for reliable parsing of
user-entered dates and times, but machine-generated formats
can be parsed reliably. This allows parsers to be aggressive about interpreting
user variations on standard formats.
"
I guess those other Standard C++ Library implementation are expanding on the
standard, and it's not clear whether they should do that.
Thanks. My disappointment is now with the C++ Standard instead. If only it had
a bugzilla.
--
murrayc at murrayc dot com changed:
What |Removed |Added
----------------------------------------------------------------------------
Severity|enhancement |normal
Status|NEW |SUSPENDED
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=26701