Mail Archives: djgpp/2004/03/16/13:46:12
On 16 Mar 2004 17:59:54 GMT in comp.os.msdos.djgpp, Martin Str|mberg
<ams AT speedy DOT ludd DOT ltu DOT se> wrote:
>Brian Inglis <Brian DOT Inglis AT systematicsw DOT invalid> wrote:
>: Can anyone tell me if the final C99 Standard specifies strftime()
>: defaults for the C locale different from strftime() in the POSIX
>: locale from the POSIX 2003 standard (which now has a back reference to
>: the C Standard)?
>
>They are identical, see below.
>
>: My copy of the official C99 Standard (and e-receipt) got blown away by
>: a disk crash shortly after downloading, and I'm too superstitious and
>: cheap to pay and download again, so I'm going from the final committee
>: distribution C99 FDIS 1999-04 which gives the following as the
>: strftime() C locale defaults:
>
>: %a the first three characters of %A.
>: %A one of "Sunday", "Monday", ... , "Saturday".
>: %b the first three characters of %B.
>: %B one of "January", "February", ... , "December".
>: %c equivalent to "%A %B %d %T %Y".
>
>Mine says "%a %b %e %T %Y".
>
>: %p one of "am" or "pm".
>
>"AM" or "PM"
>
>: %r equivalent to "%I:%M:%S %p".
>: %x equivalent to "%A %B %d %Y".
>
>"%m/%d/%y"
>
>: %X equivalent to %T.
>: %Z implementation-defined.
>
>: The POSIX 2003 strftime() defaults are:
>: http://www.opengroup.org/onlinepubs/007904975/functions/strftime.html
>
>: %a The first three characters of %A .
>: %A One of Sunday, Monday, ..., Saturday.
>: %b The first three characters of %B .
>: %B One of January, February, ..., December.
>: %c Equivalent to %a %b %e %T %Y.
>: %p One of AM or PM.
>: %r Equivalent to %I:%M:%S %p.
>: %x Equivalent to %m/%d/%y.
>: %X Equivalent to %T.
>: %Z Implementation-defined.
>
>I. e. the same as POSIX.
Thanks, and thank goodness, looks like sanity returned during the
National Body voting stage.
What's the process for getting these strftime() libc, liblocal, libtz
updates merged back into DJGPP?
--
Thanks. Take care, Brian Inglis Calgary, Alberta, Canada
Brian DOT Inglis AT CSi DOT com (Brian dot Inglis at SystematicSw dot ab dot ca)
fake address use address above to reply
- Raw text -