This is the mail archive of the
libc-alpha@sources.redhat.com
mailing list for the glibc project.
Re: glibc: standard date/time format patch
On 2002-08-18 20:53:54 +0200, Keld Jřrn Simonsen wrote:
> On Sat, Aug 17, 2002 at 04:05:03PM +0000, Eduardo Pérez Ureta wrote:
> > On 2002-08-16 23:11:38 -0700, Paul Eggert wrote:
> > > > Date: Fri, 16 Aug 2002 22:55:27 +0000
> > > > From: Eduardo Pérez Ureta <eperez@it.uc3m.es>
> > > > Cc: libc-alpha@sources.redhat.com
> > > >
> > > > On 2002-08-16 10:35:21 -0700, Ulrich Drepper wrote:
> > > > > Eduardo Pérez Ureta wrote:
> > > > > >There's a confusion what the standard date/time format is, in glibc.
> > > > >
> > > > > No, there isn't. The code is correct. Go, read the C or Unix standard.
> > > >
> > > > Sure, POSIX says so. But POSIX should follow International Standards
> > > > instead American Standards.
> > >
> > > POSIX _is_ an International Standard. For example, the format that
> > > you mention is standardized by ISO/IEC 9945-3: 1993.
>
> Well it is actually ISO/IEC 9945-2:1993.
> >
> > OK, But there's also an ISO 8601 standard that also should be followed.
> > Maybe the next version of POSIX should fix it.
>
> In the newly approved ISO/IEC TR 14652 there is a locale named "i18n"
> which uses ISO 8601 formats as the standard date and time format.
> This could be a base for a revised POSIX locale.
Fixing the C locale or adding the i18n locale are the two options
available.
> One could make a standard with both locales available, and then
> some choice could be made implementationwise.
One thing I've found is that, without my patch, I have to use a
strange locale setting like sv_SE to use ISO date/time format. But it's
not a solution since the weekdays and monthnames are neither in Spanish
nor English.
It's easy to use ISO date/time format with KDE where you can config the
date/time format in the control panel.