From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 6310 invoked by alias); 12 Mar 2002 22:46:06 -0000 Mailing-List: contact gcc-prs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Archive: List-Post: List-Help: Sender: gcc-prs-owner@gcc.gnu.org Received: (qmail 6274 invoked by uid 71); 12 Mar 2002 22:46:03 -0000 Date: Tue, 12 Mar 2002 14:46:00 -0000 Message-ID: <20020312224603.6272.qmail@sources.redhat.com> To: jsm28@gcc.gnu.org Cc: gcc-prs@gcc.gnu.org, From: dewar@gnat.com (Robert Dewar) Subject: Re: c/3190 Re: warning: `%y' yields only last 2 digits of year Reply-To: dewar@gnat.com (Robert Dewar) X-SW-Source: 2002-03/txt/msg00402.txt.bz2 List-Id: The following reply was made to PR c/3190; it has been noted by GNATS. From: dewar@gnat.com (Robert Dewar) To: dewar@gnat.com, jsm28@cam.ac.uk Cc: clock@atrey.karlin.mff.cuni.cz, gcc-gnats@gcc.gnu.org, gcc@gcc.gnu.org, geoffk@geoffk.org Subject: Re: c/3190 Re: warning: `%y' yields only last 2 digits of year Date: Tue, 12 Mar 2002 17:36:04 -0500 (EST) But there are lots of forms which *require* the year to be output as two digits, and there is nothing wrong at all with doing so. To think otherwise is to have taken some totally bizarre viewpoint of what Y2K was all about. It's perfectly fine for example to say 01/05/02 on a check, and requiring 2002 is a waste of ink. I don't see any *language* style issue and that is all that style warnings should be about. This is about *what* you are programming, whereas style options should be about *how* you are programming. An anology would be if the compiler watched for the string "Mrs." in output and printed a warning saying "inappropriate term, consider using Ms instead".