You are not logged in.

#1 2008-11-29 19:40:09

element42
Member
From: Bath, UK
Registered: 2008-04-30
Posts: 13

en_GB locale lacks am/pm representation [SOLVED]

I noticed that %p wasn't working in my strftime string in my tint2rc; much searching later I wondered if it was to do with my locale (en_gb) so I changed the entry in etc/rc.conf to en_us UTF-8 and lo, it did work.

So I found a patch in the gentoo bug tracker:
http://bugs.gentoo.org/158521
only I cant work out how to apply it! Can anyone help?

Last edited by element42 (2008-11-30 08:23:04)

Offline

#2 2008-11-29 20:28:09

elmer_42
Member
From: /na/usa/ca
Registered: 2008-10-11
Posts: 427

Re: en_GB locale lacks am/pm representation [SOLVED]

Don't British people use 24 hour time anyway?


[ lamy + pilot ] [ arch64 | wmii ] [ ati + amd ]

Offline

#3 2008-11-29 23:51:18

azleifel
Member
Registered: 2007-10-28
Posts: 486

Re: en_GB locale lacks am/pm representation [SOLVED]

The quickest way to apply that gentoo patch is to execute as root:

patch /usr/share/i18n/locales/en_GB < en_GB_ampm.patch

followed by

locale-gen

and then log out and back in to your gnome desktop.  I tried it and now have a working 12h panel clock.  Of course, if the Arch glibc package gets updated then the patch will have to be applied again if this bug hasn't been corrected upstream.

Offline

#4 2008-11-30 08:24:05

element42
Member
From: Bath, UK
Registered: 2008-04-30
Posts: 13

Re: en_GB locale lacks am/pm representation [SOLVED]

Thanks!

Offline

Board footer

Powered by FluxBB