bug-bash
[Top][All Lists]
Advanced

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

Re: feature request: printf %(%s)T


From: Eric Blake
Subject: Re: feature request: printf %(%s)T
Date: Wed, 23 Nov 2011 10:29:27 -0700
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:7.0.1) Gecko/20110930 Thunderbird/7.0.1

On 11/23/2011 10:11 AM, Greg Wooledge wrote:
> On Wed, Nov 23, 2011 at 12:00:34PM -0500, Chet Ramey wrote:
>> I wonder if a better way to handle this is to require the %s expansion
>> at configure time and use the strftime replacement in lib/sh if the C
>> library's strftime doesn't implement it.  What systems, if you know, do
>> not handle %s?
> 
> HP-UX 10.20 and 11.11 are the ones I have.  It's a somewhat commonly
> requested feature among Solaris users too, but I don't know which
> versions of Solaris they are using.  There are probably many others.
> At a guess, I would assume everything that isn't GNU/Linux or BSD.

Gnulib already provides a strftime replacement that guarantees %s, which
is handy since the next version of POSIX is considering requiring %s in
strftime().

-- 
Eric Blake   address@hidden    +1-919-301-3266
Libvirt virtualization library http://libvirt.org

Attachment: signature.asc
Description: OpenPGP digital signature


reply via email to

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