Gentoo Archives: gentoo-user

From: Stroller <stroller@××××××××××××××××××.uk>
To: gentoo-user@l.g.o
Subject: [gentoo-user] More locale oddness
Date: Fri, 07 Jan 2011 02:17:04
Message-Id: F2703D6F-095B-4E7D-B88E-47DBB1532C3B@stellar.eclipse.co.uk
1 Hi there,
2
3 Can anyone else reproduce this, please, or tell me what behaviour is expected?
4
5 $ locale
6 LANG=en_GB.UTF-8
7 LC_CTYPE="en_GB.UTF-8"
8 LC_NUMERIC="en_GB.UTF-8"
9 LC_TIME=en_GB.UTF-8
10 LC_COLLATE="en_GB.UTF-8"
11 LC_MONETARY="en_GB.UTF-8"
12 LC_MESSAGES="en_GB.UTF-8"
13 LC_PAPER="en_GB.UTF-8"
14 LC_NAME="en_GB.UTF-8"
15 LC_ADDRESS="en_GB.UTF-8"
16 LC_TELEPHONE="en_GB.UTF-8"
17 LC_MEASUREMENT="en_GB.UTF-8"
18 LC_IDENTIFICATION="en_GB.UTF-8"
19 LC_ALL=
20 $ date +"%l:%M%P"
21 1:39
22 $ LC_TIME="POSIX"
23 $ date +"%l:%M%P"
24 1:39am
25 $
26
27 I had a single line of only LANG="en_GB.UTF-8" in /etc/env.d/02locale; adding LC_TIME="POSIX" allows various scripts and stuff (I've written) to show the date properly, but I think I read somewhere that this is bad.
28
29 Thanks for any advice,
30
31 Stroller.

Replies

Subject Author
Re: [gentoo-user] More locale oddness Dale <rdalek1967@×××××.com>
Re: [gentoo-user] More locale oddness Alan McKinnon <alan.mckinnon@×××××.com>
Re: [gentoo-user] More locale oddness Steffen Loos <fenlo@×××.net>