From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.org/gmane.linux.lib.musl.general/5856 Path: news.gmane.org!not-for-mail From: Rich Felker Newsgroups: gmane.linux.lib.musl.general Subject: Re: XPG4 Date: Thu, 14 Aug 2014 19:40:04 -0400 Message-ID: <20140814234004.GO12888@brightrain.aerifal.cx> References: <20140814194632.GK12888@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 1408059626 26355 80.91.229.3 (14 Aug 2014 23:40:26 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 14 Aug 2014 23:40:26 +0000 (UTC) To: musl@lists.openwall.com Original-X-From: musl-return-5862-gllmg-musl=m.gmane.org@lists.openwall.com Fri Aug 15 01:40:19 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 1XI4cz-0002xA-QW for gllmg-musl@plane.gmane.org; Fri, 15 Aug 2014 01:40:17 +0200 Original-Received: (qmail 3499 invoked by uid 550); 14 Aug 2014 23:40:17 -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 3482 invoked from network); 14 Aug 2014 23:40:16 -0000 Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.21 (2010-09-15) Original-Sender: Rich Felker Xref: news.gmane.org gmane.linux.lib.musl.general:5856 Archived-At: On Thu, Aug 14, 2014 at 07:28:53PM -0400, Alec Salazar wrote: > I seem to be taking a wrong turn somewhere. Running find . -type f -print0 > | xargs -0 /bin/grep D_FMT in /usr/include for the installed 1.1.4 yields: > ../langinfo.h:#define D_FMT 0x20029 > ../langinfo.h:#define ERA_D_FMT 0x2002E > Pulling the latest sources and running the same command in gitdir yields: > ../src/time/strptime.c: s = strptime(s, nl_langinfo(D_FMT), > tm); > ../src/time/strftime.c: item = D_FMT; > ../include/langinfo.h:#define D_FMT 0x20029 > ../include/langinfo.h:#define ERA_D_FMT 0x2002E > Neither directory yields a result for DATE_FMT. Am I botching the unix-fu, > barking up the wrong tree or something else entirely? Oh, perhaps it's my mistake and the proper name is D_FMT. Or did you expect _DATE_FMT to give something different from what D_FMT gives? Also I think you can just use %x directly to get this, rather than looking it up via nl_langinfo first. Rich