This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
c/3190: Re: gcc bug: complaint on %c for strftime
- From: "Joseph S. Myers" <jsm28 at cam dot ac dot uk>
- To: Pavel Roskin <proski at gnu dot org>
- Cc: <Andries dot Brouwer at cwi dot nl>, <gcc at gcc dot gnu dot org>, <gcc-gnats at gcc dot gnu dot org>
- Date: Tue, 26 Nov 2002 20:11:18 +0000 (GMT)
- Subject: c/3190: Re: gcc bug: complaint on %c for strftime
On Tue, 26 Nov 2002, Pavel Roskin wrote:
> This is the bug number 3190:
> http://gcc.gnu.org/cgi-bin/gnatsweb.pl?database=gcc&pr=3190
Note this bug has for some time been awaiting comments from interested
parties (e.g. the originators of -Wno-format-y2k in NetBSD) on the
appropriate distinctions between the three cases involved (2-digit years
always, only in some locales (not C locale, and on some systems maybe not
any locale), only in some locales (including C locale)) - i.e., which
should be controlled by separate options, which should be in -Wall.
(Bearing in mind that knowing you want a 2-digit year - the first case and
the third case if in C locale - and knowing you are Y2.1K-safe in doing
this - is a fairly specialised requirement (which can be handled by manual
formatting). The second case, where some systems may not have any locales
with a defective %c, may be different.)
--
Joseph S. Myers
jsm28@cam.ac.uk