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



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

this rather esoteric. have test tests string of formatted timestamp, it's bugging me.

date's man page indicates that

%p locale's equivalent of either or pm; blank if not known %p %p, lower case

however, on fedora 20:

$ date mon 27 oct 22:44:22 aedt 2014 $ date '+%p %p' pm pm $ tz=europe/madrid date '+%p %p' pm pm

the %p not uppercase should be.

on ubuntu 14.04 behaviour correct:

$ date mon oct 27 12:20:08 cet 2014 $ date '+%p %p' pm pm $ tz=australia/melbourne date '+%p %p' pm pm

they both have same version (8.21). suggestions on next?

my colleagues managed track downwards language setting:

$ lang=en_au.utf-8 date '+%p %p' am $ lang=en_gb.utf-8 date '+%p %p' am

now figure out file bug report...

date formatting gnu-coreutils

Comments

Popular posts from this blog

Delphi change the assembly code of a running process -

json - Hibernate and Jackson (java.lang.IllegalStateException: Cannot call sendError() after the response has been committed) -

C++ 11 "class" keyword -