Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 498858 - sys-libs/glibc-2.17 - nl_NL locale fix for date
Summary: sys-libs/glibc-2.17 - nl_NL locale fix for date
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: All All
: Normal normal (vote)
Assignee: Gentoo Toolchain Maintainers
URL: https://sourceware.org/bugzilla/show_...
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-01-21 22:27 UTC by Evert
Modified: 2017-06-24 13:27 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments
nl_NL.patch (nl_NL.patch,740 bytes, patch)
2014-01-21 22:27 UTC, Evert
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Evert 2014-01-21 22:27:37 UTC
Created attachment 368402 [details, diff]
nl_NL.patch

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.
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.

For people who like to apply this patch directly to /usr/share/i18n/locales/nl_NL, remember to run locale-gen afterwards for it to be effective, so:
# patch -p3 -d /usr/share/i18n/locales < nl_NL.patch ; locale-gen ; date
Comment 1 SpanKY gentoo-dev 2014-01-22 05:50:39 UTC
sorry, but all locale fixes have to go through upstream:
https://sourceware.org/bugzilla/enter_bug.cgi?product=glibc
Comment 2 Evert 2014-01-22 12:09:10 UTC
Fair enough although I think it would be nice if Gentoo would be the first to finally show the date as it should be ;)

Anyway, thanks for the link!
Comment 3 Evert 2014-01-22 13:53:38 UTC
Upstream report https://sourceware.org/bugzilla/show_bug.cgi?id=16495
Comment 4 Evert 2017-06-24 13:27:22 UTC
Fixed in glibc-2.23