-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On 11/23/11 12:29 PM, Eric Blake wrote: > 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().
Bash already has Arnold's strftime for those systems that don't provide it, and it implements %s. Chet - -- ``The lyf so short, the craft so long to lerne.'' - Chaucer ``Ars longa, vita brevis'' - Hippocrates Chet Ramey, ITS, CWRU c...@case.edu http://cnswww.cns.cwru.edu/~chet/ -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.11 (Darwin) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ iEYEARECAAYFAk7NRwoACgkQu1hp8GTqdKu94ACeL7yFHDMaHgjv1ytZ9OvmgAm9 DS4Ani3cj1VXrbP9yuJEAf2iQANoY667 =w0fE -----END PGP SIGNATURE-----