From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.org/gmane.linux.lib.musl.general/5855 Path: news.gmane.org!not-for-mail From: Alec Salazar Newsgroups: gmane.linux.lib.musl.general Subject: Re: XPG4 Date: Thu, 14 Aug 2014 19:28:53 -0400 Message-ID: References: <20140814194632.GK12888@brightrain.aerifal.cx> Reply-To: musl@lists.openwall.com NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: multipart/alternative; boundary=001a113abd408ff5fd05009f4465 X-Trace: ger.gmane.org 1408058954 20106 80.91.229.3 (14 Aug 2014 23:29:14 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 14 Aug 2014 23:29:14 +0000 (UTC) To: musl@lists.openwall.com Original-X-From: musl-return-5861-gllmg-musl=m.gmane.org@lists.openwall.com Fri Aug 15 01:29:07 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 1XI4SA-0007dk-PO for gllmg-musl@plane.gmane.org; Fri, 15 Aug 2014 01:29:06 +0200 Original-Received: (qmail 26295 invoked by uid 550); 14 Aug 2014 23:29:06 -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 26284 invoked from network); 14 Aug 2014 23:29:05 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; bh=i+CQ0p9CBV50DymO23Cf44o3LJPCcfVD1nhaTyFyJa4=; b=GtUNDhxUPDw1yUos7k7Iz5uHw3pvyhfqTdt9ZRcVuq612ZSn/TEOPhMyNFLrVHyaQZ xBBNjQhKUUtuQwA+WaZjNX+XWZcTwh3UUaivyK7S7K6bTejFgHsgjOT1Mjxu7VBnfH2v e2cfbB49pTMJiB7++yTTf/UM9hTu+k6Erv45s1meJ3h5SWq1kfj5Pb/+r5KOfEEnhZXQ UU+gewrnSK5mFHy28Zov4VL4HWalBtE8pCWKgilKJxGrfEJtis/TeFl6xiZCV2S/BX/3 fsnM0cdw+lYv2S5pRYWcQENdIFbXtn0N2gIbyLaMad+jRTddcTykInbhGhnHYBGpwQr1 5Mzw== X-Received: by 10.140.94.163 with SMTP id g32mr21350962qge.77.1408058933636; Thu, 14 Aug 2014 16:28:53 -0700 (PDT) In-Reply-To: <20140814194632.GK12888@brightrain.aerifal.cx> Xref: news.gmane.org gmane.linux.lib.musl.general:5855 Archived-At: --001a113abd408ff5fd05009f4465 Content-Type: text/plain; charset=UTF-8 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? On Thu, Aug 14, 2014 at 3:46 PM, Rich Felker wrote: > On Thu, Aug 14, 2014 at 03:31:23PM -0400, Alec Salazar wrote: > > Is there any interest or plan to support the xopen xpg4 standard? My > > specific interest is regarding zfs on linux. There is a function call > > nl_langinfo(_DATE_FMT). Apparently this nl item was added in xpg4. I'm > > wondering what the possibility is of a long-term solution. > > _DATE_FMT is just an incorrect or obsolete spelling for DATE_FMT. The > latter is standard and is supported by musl. > > Rich > --001a113abd408ff5fd05009f4465 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
I seem to be taking a wrong turn somewhere. Runn= ing find . -type f -print0 | xargs -0 /bin/grep D_FMT in /usr/include for t= he installed 1.1.4 yields:
./langinfo.h:#define D_FMT 0x20029
./langi= nfo.h:#define ERA_D_FMT 0x2002E
Pulling the latest sources and running the same command in gitdir yie= lds:
./src/time/strptime.c:=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2= =A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 s =3D strptime(s,= nl_langinfo(D_FMT), tm);
./src/time/strftime.c:=C2=A0=C2=A0=C2=A0=C2=A0= =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 item =3D D_FMT;
./include/langinfo.h:#def= ine D_FMT 0x20029
./include/langinfo.h:#define ERA_D_FMT 0x2002E
Neither directory y= ields a result for DATE_FMT. Am I botching the unix-fu, barking up the wron= g tree or something else entirely?



On Thu, Aug 14, 2014 at 3:46 PM, Rich Fe= lker <dalias@libc.org> wrote:
On Thu, Aug 14, 2014 at 03:31:23PM = -0400, Alec Salazar wrote:
> Is there any interest or plan to support the xopen xpg4 standard? My > specific interest is regarding zfs on linux. There is a function call<= br> > nl_langinfo(_DATE_FMT). Apparently this nl item was added in xpg4. I&#= 39;m
> wondering what the possibility is of a long-term solution.

_DATE_FMT is just an incorrect or obsolete spelling for DATE_FM= T. The
latter is standard and is supported by musl.

Rich

--001a113abd408ff5fd05009f4465--