delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2004/03/16/13:46:12

X-Authentication-Warning: delorie.com: mail set sender to djgpp-bounces using -f
X-Trace-PostClient-IP: 68.147.131.211
From: Brian Inglis <Brian DOT Inglis AT SystematicSw DOT Invalid>
Newsgroups: comp.os.msdos.djgpp
Subject: Re: C99 strftime() C locale defaults
Organization: Systematic Software
Message-ID: <15ie50101nuroul52khtsc7vdt935mgau7@4ax.com>
References: <hm9a50desrs4228bc3vj4p782to63laaj1 AT 4ax DOT com> <4057409a$0$96977$cc7c7865 AT news DOT luth DOT se>
X-Newsreader: Forte Agent 1.93/32.576 English (American)
MIME-Version: 1.0
Lines: 64
Date: Tue, 16 Mar 2004 18:43:50 GMT
NNTP-Posting-Host: 24.71.223.147
X-Complaints-To: abuse AT shaw DOT ca
X-Trace: pd7tw1no 1079462630 24.71.223.147 (Tue, 16 Mar 2004 11:43:50 MST)
NNTP-Posting-Date: Tue, 16 Mar 2004 11:43:50 MST
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp
Reply-To: djgpp AT delorie DOT com

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 -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019