Title
Y2K bites; what is an "unambiguous year identifier"?
Status
open
Section
[locale.time.get.virtuals]
Submitter
Hubert Tong

Created on 2015-06-19.00:00:00 last changed 93 months ago

Messages

Date: 2016-08-04.03:06:12

[ 2016-08 Chicago ]

Wed PM: This has been this way since C++98. Don't think it's a P2.

Change to P4, and move to Open.

Date: 2015-06-19.00:00:00

I recently encountered a failure related to questionable use of do_get_year. The platform where the code happened to work had an implementation which handled certain three-digit "year identifiers" as the number of years since 1900 (this article describes such an implementation).

[locale.time.get.virtuals] makes it implementation defined whether two-digit years are accepted, etc., but does not say anything specifically about three-digit years.

The implementation freedom to not report errors in [locale.time.get] paragraph 1 also seems to be too broad.

See also the discussion following c++std-lib-38042.

History
Date User Action Args
2016-08-04 03:06:12adminsetmessages: + msg8388
2016-08-04 03:06:12adminsetstatus: new -> open
2015-06-19 00:00:00admincreate