This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]