From: Raphael 'kena' Poss <knz@cockroachlabs.com>
To: musl@lists.openwall.com
Subject: musl's strptime does not support POSIX %U/%W
Date: Fri, 21 Oct 2016 11:00:35 +0200 [thread overview]
Message-ID: <4bb408a9-76e3-f432-48d7-72b69181bbcc@cockroachlabs.com> (raw)
Hi all,
we at CockroachDB would like to integrate strptime, but some of our
users on Alpine Linux discovered that musl's strptime doesn't live up to
expectations:
conv_test.go:58: strptime("2018 10 4", "%Y %W %w"): got
"2017-12-31T00:00:00Z", expected "2018-03-08T00:00:00Z"
conv_test.go:58: strptime("2018 10 4", "%Y %U %w"): got
"2017-12-31T00:00:00Z", expected "2018-03-15T00:00:00Z"
Indeed there's a FIXME in there:
https://git.musl-libc.org/cgit/musl/tree/src/time/strptime.c#n123
We've filed this internally as
https://github.com/cockroachdb/cockroach/issues/10130
As of this day this is the only known limitation that prevents
compatibility of CockroachDB with musl. If you have any suggestions /
input we'd be glad to receive them!
Best regards
--
Raphael 'kena' Poss
next reply other threads:[~2016-10-21 9:00 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-10-21 9:00 Raphael 'kena' Poss [this message]
2016-10-21 16:18 ` Rich Felker
2016-10-21 17:34 ` Rich Felker
2016-10-21 18:16 ` 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=4bb408a9-76e3-f432-48d7-72b69181bbcc@cockroachlabs.com \
--to=knz@cockroachlabs.com \
--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).