coreutils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: date opposite case flag


From: Pádraig Brady
Subject: Re: date opposite case flag
Date: Fri, 08 Mar 2013 01:28:34 +0000
User-agent: 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.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]