This is the mail archive of the glibc-bugs@sourceware.org mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug libc/16495] New: glibc-2.17+ - nl_NL locale fix for date


https://sourceware.org/bugzilla/show_bug.cgi?id=16495

            Bug ID: 16495
           Summary: glibc-2.17+ - nl_NL locale fix for date
           Product: glibc
           Version: unspecified
            Status: NEW
          Severity: normal
          Priority: P2
         Component: libc
          Assignee: unassigned at sourceware dot org
          Reporter: evert.gentoo at planet dot nl
                CC: drepper.fsp at gmail dot com

Created attachment 7367
  --> https://sourceware.org/bugzilla/attachment.cgi?id=7367&action=edit
nl_NL locale patch for date

see https://bugs.gentoo.org/show_bug.cgi?id=498858

I'd like to share a patch which corrects the wrong formatted date for nl_NL*
locale settings.

In the Netherlands we say & write the full date like:
wo  1 jan 2014  8:59:59 CET  (%a %e %b %Y %k:%M:%S %Z)

Currently, when a locale setting like LC_TIME=nl_NL.UTF-8 is active, `date`
outputs:
wo jan  1 08:59:59 CET 2014  (%a %b %e %H:%M:%S %Z %Y)

which is totally wrong!
This patch corrects this locale issue.

Note: I already use this patch for years without any issue and it applies to
all glibc versions of the last few years.
I'm aware there might exist some braindead scripts which awk fields out of date
instead of using % format controls. However, I can't imagine that whould be any
issue since braindead scripts like that (should be) run in an en_US* or C
locale environment anyway.

-- 
You are receiving this mail because:
You are on the CC list for the bug.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]