Follow @Openwall on Twitter for new release announcements and other news
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Date: Thu, 31 Aug 2017 15:44:23 -0500
From: "A. Wilcox" <awilfox@...lielinux.org>
To: musl@...ts.openwall.com
Subject: Re: strftime %Z returning empty string

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256

On 31/08/17 15:23, jacob@...shcomputing.com wrote:
> Hello,
> 
> I've been working through the Python test suite (2.7.13) on musl 
> (1.1.16). There were a couple over-zealous tests involving errno,
> and locale tests that I'd expect to fail, but one set of failures I
> haven't yet been able to rule out as a musl bug. Symptom:
> 
>>>> time.strftime('%Z')
> 'GMT'
>>>> time.strftime('%Z', time.localtime())
> ''
> 
> The Python docs say these should be equivalent.
> 
> The implementation is about what you'd expect: if the second
> argument to time.strftime() is omitted, it passes the results of C
> localtime() directly to strftime(); otherwise it builds a "struct
> tm" by "memset"ing to '\0' then assigning the public fields (which
> of course don't include a time zone).
> 
> Bug? Bad assumption on their part? Nonsensical standard?
> 
> Thanks, J. Welsh


%Z is a glibc extension.  I don't believe musl supports it.

Best,
- --arw

- -- 
A. Wilcox (awilfox)
Project Lead, Adélie Linux
http://adelielinux.org
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2

iQIcBAEBCAAGBQJZqHUJAAoJEMspy1GSK50U6ksP/RPMfan6rKijFRS/6u5TDtam
MnX6h9qCKvG5biaxH8vrb6qFP5bi/4IDHUM/dFsVHalCPmXrXYE6l/hb4nUmLCo0
ysbQ5vXilvY9gHHKxatOnHl0BH3YCxQoMGfJl1qcwfhH3ELfq5waVYNBN+lMueKV
/qrtEIFcX1dWMnXnlyYuVoPL50Vt2qocKJ5i8U0fRNj96q2/foR4THAyQlgvWU2b
oBZSNIr8bfrKjueNVA+0fzbPwmRj4nZaMHrmRXSgYpzEwuWkJNTstK12cksB8xp/
gmC8g3L1M/3Hj8YyJRbTRvF3ppgDZ7Glay+5n9ei0ZRKGJLOMY/k56wfWRApdAxC
j9I39V52cgPheuVqvbTUGFrC9+vGptxT8zZRYEEXQmbKDw5z96QHbYebXtKuR3SV
dcIREhOgyyS0TRCPDr1JB+giOxAADKTcZCFEeTn6A0o/ng06ccCEt0oztBVcB629
BVpq9QxfCKL2OBtXx1v0qB0GZDFGeKMK+fShBO/m/k7DvOL35rXKded5Wl9zk2fK
O3HEBTvbrGnuQOQuEAMQpsdEnCfsEaNe+WOYveb/x33Q/dB+Jcy1/INte38levqS
63YCvTp7CyNGdG3Alr0bJk36srH2DR45JioJlWuwRI/MccGDUny5VHcZf5VEWUUU
XsO/fQqzLwKnEkAT1rc5
=h9Bi
-----END PGP SIGNATURE-----

Powered by blists - more mailing lists

Confused about mailing lists and their use? Read about mailing lists on Wikipedia and check out these guidelines on proper formatting of your messages.