This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug libstdc++/26697] time_put::put('x') shows only 2 year digits, in en_GB locale.
- From: "pcarlini at suse dot de" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 15 Mar 2006 17:41:27 -0000
- Subject: [Bug libstdc++/26697] time_put::put('x') shows only 2 year digits, in en_GB locale.
- References: <bug-26697-8548@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #8 from pcarlini at suse dot de 2006-03-15 17:41 -------
(In reply to comment #7)
> Maybe we can just call it an enhancement or improvement then?
Maybe, if the glibc people agree (and the UK people agree, of course: the issue
boils down to convincing the ISO/POSIX people in UK who are in chanrge of the
minute locale data details, not at all an easy task, if you ask me ;)
> (Thought I strongly feel that any date meant for humans to read must have 4
> year digits and any use of 2 year digits for a human to read should be a bug,
> even if that human is using the C locale.)
Maybe, again, but note that if we are talking about the "C" locale, the C
Standard itself mandates %m/%d/%y. If you ask me, after so many years of code
relying on that specific behavior, trying to change it now is an almost
*impossible* task, really.
By the way, can't you just prepare a small function consistently using 'Y',
just a few lines, after all...
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=26697