Am 08.01.2011 14:24, schrieb Alan McKinnon:
Apparently, though unproven, at 18:33 on Friday 07 January 2011, Stroller did
opine thusly:
On 7/1/2011, at 6:26am, Alan McKinnon wrote:
...
Can anyone else reproduce this, please, or tell me what behaviour is
expected?
$ locale
LANG=en_GB.UTF-8
LC_CTYPE="en_GB.UTF-8"
LC_NUMERIC="en_GB.UTF-8"
...
$ date +"%l:%M%P"
1:39
$ LC_TIME="POSIX"
$ date +"%l:%M%P"
1:39am
$
Your output looks fine, except for the last two commands. LC_TIME is an
envvar, you have set it without exporting it, then ran data again and got
a change. I don't understand how you managed that as LC_TIME would no
longer be POSIX at that stage:
because: LC_TIME is exported already as it was set via /etc/env.d/02locale.
...
Removing either (& rebooting, because I don't really understand this stuff)
removes the ability.
Only unset LANG and LC_TIME is sufficient to reproduce the behaviour.
The variable is lacking quotes in the `locale` output above; I have no idea
whether or not this makes any difference.
I think it doesn't.
Steffen