mailing list of musl libc
 help / color / mirror / code / Atom feed
From: "A. Wilcox" <awilfox@adelielinux.org>
To: musl@lists.openwall.com
Subject: Re: strftime %Z returning empty string
Date: Thu, 31 Aug 2017 15:44:23 -0500	[thread overview]
Message-ID: <59A87527.3070700@adelielinux.org> (raw)
In-Reply-To: <alpine.DEB.2.00.1708311558400.12602@ny1.eemta.org>

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

On 31/08/17 15:23, jacob@welshcomputing.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-----


  reply	other threads:[~2017-08-31 20:44 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-08-31 20:23 jacob
2017-08-31 20:44 ` A. Wilcox [this message]
2017-08-31 21:12   ` jacob
2017-08-31 21:56     ` Rich Felker
2017-09-01  8:57   ` Szabolcs Nagy
2017-09-04 23:27 ` musl's asctime catches Python bug jacob
2017-09-05  0:08   ` Rich Felker

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=59A87527.3070700@adelielinux.org \
    --to=awilfox@adelielinux.org \
    --cc=musl@lists.openwall.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/musl/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).