locales

Home page Latest blog

locales

photo This section is part of something like a blog. To contact me or comment on this, see my email page.


Why does GNU date output

Tue Jan 17 14:55:35 GMT 2006

instead of the English

Tue 17 Jan 2006 14:55:35 GMT

? My LANG is en_GB.UTF-8. Setting LC_TIME and LC_ALL changes nothing. locale's output looks fine - what's wrong here? Replies to mjr at phonecoop.coop please.

Update: Brett solved it: GNU date only uses the locale if you run "date +%c" instead of just "date". I knew that once, but had forgotten it. Thanks, Brett!

Update: Loïc Corbasson speculates that the default mix of native abbreviations and US ordering is to help scripts that use awk, cut and so on. Thanks, Loïc!


To index.

This is copyright 2006 MJ Ray. See fuller notice on front page.