From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.org/gmane.linux.lib.musl.general/5090 Path: news.gmane.org!not-for-mail From: Isaac Dunham Newsgroups: gmane.linux.lib.musl.general Subject: Re: strptime problems Date: Thu, 8 May 2014 06:44:36 -0700 Message-ID: <20140508134435.GA513@muslin> References: <20140508043214.GA6149@brightrain.aerifal.cx> Reply-To: musl@lists.openwall.com NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1399556670 4674 80.91.229.3 (8 May 2014 13:44:30 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 8 May 2014 13:44:30 +0000 (UTC) To: musl@lists.openwall.com Original-X-From: musl-return-5096-gllmg-musl=m.gmane.org@lists.openwall.com Thu May 08 15:44:22 2014 Return-path: Envelope-to: gllmg-musl@plane.gmane.org Original-Received: from mother.openwall.net ([195.42.179.200]) by plane.gmane.org with smtp (Exim 4.69) (envelope-from ) id 1WiOcY-0000fN-Ih for gllmg-musl@plane.gmane.org; Thu, 08 May 2014 15:44:22 +0200 Original-Received: (qmail 11902 invoked by uid 550); 8 May 2014 13:44:21 -0000 Mailing-List: contact musl-help@lists.openwall.com; run by ezmlm Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: Original-Received: (qmail 11890 invoked from network); 8 May 2014 13:44:21 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=date:from:to:subject:message-id:references:mime-version :content-type:content-disposition:in-reply-to:user-agent; bh=ECnkjTK7qjjP2h+VpxURrx1a/hkwFi0uOYSZTOsG6WI=; b=XyCDhZSQlHC3LqS6Y0Ev/Zjvi+Qul3jRSRc8H+qiU89ysH7G+KNkXBobTkFlt+aMg5 bArjOyz12587y94Y/x1rYxbczRqaGdyU62NT9cRzK4a6cKSdxnmXFDT5vyPAE1J165va 8NykxS4ZUBe8Ewz6YVt/tBsfkhMQskHRJMfyB0fvpmG4YTQCR1aEQ69CG6yIC5xL6PAk cdtmYefozPZ4PhS3wSV0+YEZXZWGYgZl/ko6O/nWhOZRHzoJLQPtJRIqyz2S/QQPa17n gaBrbLunxRc7iSgNct1DzhekgJwFlAxupkp0qEN7TB+rW8I6DL817QF8Bsb1W9U/sEmV hiYA== X-Received: by 10.66.140.104 with SMTP id rf8mr7764148pab.107.1399556648880; Thu, 08 May 2014 06:44:08 -0700 (PDT) Content-Disposition: inline In-Reply-To: <20140508043214.GA6149@brightrain.aerifal.cx> User-Agent: Mutt/1.5.21 (2010-09-15) Xref: news.gmane.org gmane.linux.lib.musl.general:5090 Archived-At: On Thu, May 08, 2014 at 12:32:14AM -0400, Rich Felker wrote: > It was raised somewhere (on IRC, I think) that strptime still has some > failure paths where functionality is unimplemented. These should have > been caught and fixed a long time ago, but they weren't, so I'd like > to get it done now. However I'm not clear on what the behavior of > strptime should be when reading "derived" fields that don't actually > correspond to anything in the "struct tm". Should it just parse and > ignore them, or should it somehow convert back? The week-based-year > stuff is probably the biggest question but there are others too. I'd say it shouuld convert back. "%U %w %Y" is enough information to find the day referred to. HTH, Isaac Dunham