Email List: Xaustin-review-lX
[All Lists]

Re: Defect in XSH asctime()

To: yyyyyyyyyyyyyyy@xxxxxxx
Subject: Re: Defect in XSH asctime()
From: Paul Eggert <yyyyyy@xxxxxxxxxxx>
Date: Sat, 13 Dec 2003 23:19:58 -0800
Cc: yyyyyyyyyyyyyyy@xxxxxxxxxxxxx
References: <200312120217.CAA12802@xxxxxx>
At Fri, 12 Dec 2003 02:17:59 GMT, yyyyyyyyyyyyyyy@xxxxxxx writes:

>    (see <time.h>), and the calculated year does not exceed four digits:
>
> page 121 line 4428 section asctime() objection
>   After line 4428, add:
>    Otherwise, if any of the fields of the tm structure pointed to by
>    timeptr contain values that are outside the normal ranges, asctime()
>    behavior is undefined.  If the calculated year exceeds four digits,

The proposed rewording addresses only the issue where the calculated
year exceeds 9999.  The specification also address the issue where the
calculated year is negative.  So I would change "the calculated year
does not exceed four digits" to "the calculated year is in the range 0
through 9999 inclusive", and similarly for the other (negated)
occurrence of the wording.

<Prev in Thread] Current Thread [Next in Thread>