[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: `nstrftime ()' prototype
From: |
Bruno Haible |
Subject: |
Re: `nstrftime ()' prototype |
Date: |
Tue, 26 Aug 2008 09:56:28 +0200 |
User-agent: |
KMail/1.5.4 |
Simon Josefsson wrote:
> That doesn't make much sense to me. IMHO, the 'strftime' module should
> provide a 'strftime' function.
Jim Meyering wrote:
> nstrftime is not in glibc.
> It's been in use (at least in coreutils) since GNU date started
> supporting the %N format in 2002.
To make things straightforwardly understandable, IMO we need 3 modules:
- strftime-posix, which defines a POSIX compliant strftime(), i.e. which
provides a substitution on mingw.
- strftime-gnu, which defines an strftime() with the same extensions as
documented in glibc, i.e. it provides a substitute on all systems except
glibc,
- strftime-gnu-ext, which provides the nstrftime() function.
The source code (lib/strftime.c) should be mostly unchanged; most work will
go into the autoconf macros.
What do you think?
Bruno
Re: `nstrftime ()' prototype, Ludovic Courtès, 2008/08/30