From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.org/gmane.linux.lib.musl.general/10652 Path: news.gmane.org!.POSTED!not-for-mail From: Rich Felker Newsgroups: gmane.linux.lib.musl.general Subject: Re: musl's strptime does not support POSIX %U/%W Date: Fri, 21 Oct 2016 12:18:22 -0400 Message-ID: <20161021161822.GV19318@brightrain.aerifal.cx> References: <4bb408a9-76e3-f432-48d7-72b69181bbcc@cockroachlabs.com> Reply-To: musl@lists.openwall.com NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: blaine.gmane.org 1477066736 13630 195.159.176.226 (21 Oct 2016 16:18:56 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Fri, 21 Oct 2016 16:18:56 +0000 (UTC) User-Agent: Mutt/1.5.21 (2010-09-15) To: musl@lists.openwall.com Original-X-From: musl-return-10665-gllmg-musl=m.gmane.org@lists.openwall.com Fri Oct 21 18:18:52 2016 Return-path: Envelope-to: gllmg-musl@m.gmane.org Original-Received: from mother.openwall.net ([195.42.179.200]) by blaine.gmane.org with smtp (Exim 4.84_2) (envelope-from ) id 1bxcWh-00017e-4l for gllmg-musl@m.gmane.org; Fri, 21 Oct 2016 18:18:35 +0200 Original-Received: (qmail 1566 invoked by uid 550); 21 Oct 2016 16:18:35 -0000 Mailing-List: contact musl-help@lists.openwall.com; run by ezmlm Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-ID: Original-Received: (qmail 1548 invoked from network); 21 Oct 2016 16:18:35 -0000 Content-Disposition: inline In-Reply-To: <4bb408a9-76e3-f432-48d7-72b69181bbcc@cockroachlabs.com> Original-Sender: Rich Felker Xref: news.gmane.org gmane.linux.lib.musl.general:10652 Archived-At: On Fri, Oct 21, 2016 at 11:00:35AM +0200, Raphael 'kena' Poss wrote: > 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! Indeed, somehow I thought this FIXME had been fixed a long time ago, but it seems it hasn't. I'll see if we can get it added soon. Rich