formatting - date '+%p' AM/PM indicator is wrong case on Fedora 20 -


It's rather confusing but I have a test that tests the string of formatted timestamps, so it's useless is.

The Man page of Date indicates that

  equals P or PM equal to local number; Blank if not known% p like% p, but short case  

However, on Fedora 20:

  $ date Monday 27 October 22:44: 22 AEDT 2014 $ date '+% p% p' pm PM $ TZ = Europe / Madrid date '+% p% P' pm pm  

% p

The behavior is correct on Ubuntu 14.04:

  $ date Mon 27 Oct 12:20:08 CET 2014 $ Date '+% P% P' PM PM $ tees = Australia / Melbourne date '+% p% p' PM PM  

Both have the same version (8.21). Where is any suggestion to look forward?

My colleagues managed to track it in language settings:

  $ LANG = en_AU.UTF-8 Date '+% p% P' AM $ LANG = en_GB.UTF-8 Date '+% p% P' Am / <> Code 

Now Address To find out where the bug report is ...


Comments