From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.org/gmane.linux.lib.musl.general/10651 Path: news.gmane.org!.POSTED!not-for-mail From: Raphael 'kena' Poss Newsgroups: gmane.linux.lib.musl.general Subject: musl's strptime does not support POSIX %U/%W Date: Fri, 21 Oct 2016 11:00:35 +0200 Organization: Cockroach Labs Message-ID: <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=utf-8 Content-Transfer-Encoding: 7bit X-Trace: blaine.gmane.org 1477064732 21472 195.159.176.226 (21 Oct 2016 15:45:32 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Fri, 21 Oct 2016 15:45:32 +0000 (UTC) User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.4.0 To: musl@lists.openwall.com Original-X-From: musl-return-10664-gllmg-musl=m.gmane.org@lists.openwall.com Fri Oct 21 17:45:28 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 1bxc0U-00046O-34 for gllmg-musl@m.gmane.org; Fri, 21 Oct 2016 17:45:18 +0200 Original-Received: (qmail 16373 invoked by uid 550); 21 Oct 2016 15:45:17 -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 14080 invoked from network); 21 Oct 2016 09:00:49 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cockroachlabs.com; s=google; h=to:from:subject:organization:message-id:date:user-agent :mime-version:content-transfer-encoding; bh=wc2oKqJBdrdw/r4NyoyIBG53EjMRB4+T+8TW0UlOdmg=; b=SQYYxTEWmHhHrolllKCCLzOMDOtAw4oXecrKsl/KUPWFgLNqQ3+wNiGKh82CXQtak0 RDEWtrjTAvCPQE2X88E0rPz8R9DRx0gIf/NpfVoyb+MmELtTN923Z4L5ijTTeI6ZI+Fw d0AX2vxouG8IuK1t+47fga0hiOMgSBztNoqt0tNcjiwwDu9GmVb5Dq4nYOoopABc88/n ayLi5mySKj/RZpgHLm9t9E9qLEf1sp8+EyEFuhHqP74ocFrvrTGeUbsMemyKm9YVC/4T qVcIbp8IBImA8LvUhrPlP4weniUo5HV6QSBYG+y0WfpBiDINzhtLin+fB1lmuPfxj66k 5jmg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:to:from:subject:organization:message-id:date :user-agent:mime-version:content-transfer-encoding; bh=wc2oKqJBdrdw/r4NyoyIBG53EjMRB4+T+8TW0UlOdmg=; b=fgFYq39qpiG04nCgZtxTvZqxuK53iMM843HudtYE+mMqvDx7g68uBWRiev4hzktiAJ XDEDl2oBaoElKYSPlXP0mgEArO4YQe85QMIRrIQ8QwgD2JegoghGVFKblV/U0cpMk2Y/ q/g8FytEimQCFV2xph4ZhkuIRV7AE7LSWYhwQR+mDWDkpdpAmKPrggrs4XeqoAN+2QvX eP+PZDpIXvwomAQuCQYJoOXFNbJJSuYmrN7MFpyz4g+zwuFoc1D+y+jfDFDYvYq5DKxh yPWm4o7VxzR9QYV7sjg0f7iq9XmYpgyLMvCaYsWRvJvdwmu0T/gmFnJ8RViJNGbLTHZP plww== X-Gm-Message-State: AA6/9Rmf9CFoeyEB2xbmMH7SLxflZNT5js6lNMBpNEYWY8oTQPL8kCZhbdsgcBk5SIotlFAL X-Received: by 10.25.24.39 with SMTP id o39mr3780152lfi.151.1477040437616; Fri, 21 Oct 2016 02:00:37 -0700 (PDT) Xref: news.gmane.org gmane.linux.lib.musl.general:10651 Archived-At: 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