%x format specifier to the
date utility should, according to the man page, use the locale specific date format. However, when I specify the same installed locale and try this on two different machines, I get different formats on each:
On machine 'A':
$ locale -a | grep fr_FR fr_FR fr_FR.ISO8859-1 fr_FR.ISO8859-15 fr_FR.UTF-8 $ LC_ALL=fr_FR.UTF-8 date +%x 31.05.2012
On machine 'B':
$ locale -a | grep fr_FR fr_FR.utf8 $ LC_ALL=fr_FR.UTF-8 date +%x 31/05/2012
I had a look at http://demo.icu-project.org/icu-bin/locexp?d_=en&_=fr_FR, and the section for 'short date' makes it look as if machine 'B' has it right here. Or have I misunderstood something, and in fact the locale settings do not absolutely specify the date format and this sort of variation is to be expected across implementations?
Edit: Hmm.. no takers... Would it be more interesting if I said that machine 'A' is OS X Lion and machine 'B' is Ubuntu 12.04, both of which it would seem reasonable to expect to have correct internationalization/localization settings?