Mozilla/5.0 (X11; Linux x86_64; rv:17.0) Gecko/20130110 Thunderbird/17.0.2
On 03/07/2013 03:59 PM, Ondrej Oprala wrote:
> date invoked with # as one of the flags following % often gives very
> surprising results
> (apart from +%#Z, which seems to be working fine).
> This has also been mentioned here:
>https://bugzilla.redhat.com/show_bug.cgi?id=749704 .
> Though JW raises some valid points, is it really worth fixing # to get a
> format like fRIDAY, or
> would fixing only some cases, like #^ to produce lowercase, suffice?
What might be possible is to support combinations of flags.
So ^=uppercase and ^#=lowercase
This is handled in strftime though and so would need
to be updated in glibc first and then synced to gnulib I think.
Also there is the awkward caveat of multibyte case changing,
which isn't supported correctly at present:
$ LANG=sv_SE.utf8 date +%^a -dmon
MåN
thanks,
Pádraig.