Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 411645 - sys-libs/glibc: localedata: add AM/PM strings to cy_GB and en_GB
Summary: sys-libs/glibc: localedata: add AM/PM strings to cy_GB and en_GB
Status: RESOLVED UPSTREAM
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: All Linux
: Normal enhancement (vote)
Assignee: Gentoo Toolchain Maintainers
URL: http://lists.debian.org/debian-glibc/...
Whiteboard:
Keywords: PATCH
Depends on:
Blocks:
 
Reported: 2012-04-11 21:28 UTC by Homer
Modified: 2012-04-12 22:45 UTC (History)
1 user (show)

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


Attachments
glibc-all-ampm.patch (GB locales) (glibc-all-ampm.patch,1.88 KB, patch)
2012-04-11 21:33 UTC, Homer
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Homer 2012-04-11 21:28:38 UTC
Currently the GB locale lacks any support for AM/PM format strings. This results in empty AM/PM fields in applications set to display 12 hour format. Without patching the localedata, the only way around this problem is to temporarily switch to another locale that does support AM/PM format strings, e.g. "LANG=en_US foobar". However, since en_US is not my language, I'd much rather not have to do that, especially as it would also impact other features of the affected applications (spell checking, etc.).

Some investigation into the root cause of this deficiency reveals that it seems to be a political issue, where the glibc developers have some sort of ideological objection to 12 hour clock formats. This is bizarre, and of zero interest to me, nor I suspect the many other people who prefer 12 hour time displays. This is, and rightfully should be, purely a matter of individual preference, not "official" policy.

A (currently working and tested) patch was provided by Jakub Jelink @ Red Hat in 2004 (linked and attached).

Please consider this RFE.

Thank you.

Reproducible: Always

Steps to Reproduce:
1. Install gentoo, glibc, and set locale-gen en_GB
2. Run any app that can use 12h time format + AM/PM field (e.g. x11-misc/tint2)
3. Configure app to show AM/PM field
Actual Results:  
AM/PM field is blank.

Expected Results:  
The GB locale should have the same benefit of AM/PM format as the US locale.
Comment 1 Homer 2012-04-11 21:33:57 UTC
Created attachment 308569 [details, diff]
glibc-all-ampm.patch (GB locales)
Comment 2 SpanKY gentoo-dev 2012-04-12 00:24:42 UTC
should post upstream first
Comment 3 Homer 2012-04-12 01:53:31 UTC
Found upstream bug "en_GB should have am/pm representation" (added above), reported on 2006-12-20, summarily closed by former Red Hat employee and glibc lead Ulrich Drepper, for purely ideological reasons (he just doesn't like the 12 hour format), then reopened but ignored for the last 6 years. The most recent bug update was just a week ago.

If you know anything about Drepper at all, you'll understand my extreme reluctance to engage in any debate with him. He has a long history of hostility, stubbornness and unreasonable behaviour. I don't want to labour the point, but let me just show you a few examples:

http://sourceware.org/bugzilla/show_bug.cgi?id=4980
http://sourceware.org/bugzilla/show_bug.cgi?id=5070
http://computingfunnyfacts.blogspot.co.uk/2009/05/ulrich-drepper-about-stallman.html

Meanwhile it seems every distro circumvents Drepper's "eccentricity" with their own patches, and have given up trying to gain upstream acceptance.

The good news is there was a recent change of leadership, so it's possible this patch may finally be accepted.

http://linux.slashdot.org/story/12/03/31/1328256/glibc-steering-committee-dissolves-switches-to-co-operative-development-model

Apparently Drepper now works for the legally-dubious Goldman Sachs, which seems highly appropriate given his nature.

I'll add my 2ยข to the upstream bug and hope for the best, but really we should probably just do what every other distro does, and patch this ourselves. For now.
Comment 4 SpanKY gentoo-dev 2012-04-12 04:00:50 UTC
thanks.  i'll post the patch upstream.
Comment 5 SpanKY gentoo-dev 2012-04-12 20:19:47 UTC
ok, this should be on track for glibc-2.16
Comment 6 Homer 2012-04-12 22:45:15 UTC
Success!