help-debbugs
[Top][All Lists]
Advanced

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

bug#35078: Possible bug in the date command, to do with %p


From: Eric Blake
Subject: bug#35078: Possible bug in the date command, to do with %p
Date: Tue, 2 Apr 2019 22:08:40 -0500
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.6.0

On 4/2/19 3:22 PM, Nicholas Joll wrote:

> I have two suggestions. (1) Amend the manual such that it says something
> like the following.
> 
>     %P     like %p, but lower case (or uppercase if uppercase is all
> that the locale provides)
> 
> (2) Add (and document) a new option that works thusly:
> 
>     %PP     locale's implementation of AM/PM (or blank if the locale has
> no such implementation), forced into uppercase

We can't spell it %PP (that would be parsed as "%P" "P"), but we could
take a leaf from %:z (and even %:::z) if we wanted to use : as a flag to
force particular capitalizations.  Of course, even toupper()/tolower()
are locale-dependent, so it's still hard to say what could really be
forced if we added particular variants for overriding a locale's
preferred case.

-- 
Eric Blake, Principal Software Engineer
Red Hat, Inc.           +1-919-301-3226
Virtualization:  qemu.org | libvirt.org





reply via email to

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