delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2026/09/16/16:57:55

DMARC-Filter: OpenDMARC Filter v1.4.2 delorie.com 68GKvtvB2666350
Authentication-Results: delorie.com; dmarc=pass (p=none dis=none) header.from=cygwin.com
Authentication-Results: delorie.com; spf=pass smtp.mailfrom=cygwin.com
DKIM-Filter: OpenDKIM Filter v2.11.0 delorie.com 68GKvtvB2666350
Authentication-Results: delorie.com;
dkim=pass (1024-bit key, unprotected) header.d=cygwin.com header.i=@cygwin.com header.a=rsa-sha256 header.s=default header.b=fuH00e3a
X-Recipient: archive-cygwin AT delorie DOT com
DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 88ECE4BA7999
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cygwin.com;
s=default; t=1789592257;
bh=osPRK20jrowd/sCyktJ1Ys+MJWV+mFMAommMANyetzo=;
h=References:In-Reply-To:Date:Subject:To:Cc:List-Id:
List-Unsubscribe:List-Archive:List-Post:List-Help:List-Subscribe:
From:Reply-To:From;
b=fuH00e3aMwnAF0eBaDE7mE4/ZkUy3Te9y2jI3Ku0NHjrIFuEzzyU0Vxqkga1/X/RP
l1Tcl3w8yRoJ5qgxMQdworzl4NwtaK1IcY+9ci2GUGXUUdjlqZL0KW4axNgLNZVOGX
pMyXNjADFnDeSa+Zwcbq64jNhhVyzBCiV1FJyl4c=
X-Original-To: cygwin AT cygwin DOT com
Delivered-To: cygwin AT cygwin DOT com
DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 1306B4BA23F4
ARC-Filter: OpenARC Filter v1.0.0 sourceware.org 1306B4BA23F4
ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1789592237; cv=none;
b=YyYns8WCpIY+iMp3LDq4gg2JpkJr+mNlvptkF+IYnVufOwtZ/RsttkbW1wyugvak0P4UuAowZA0VfdDIpqdPDT5Il+KwCm32cPM0/VhHf2SbGhdOOe551OIZPRHlWa9YBfNDdeC6k4IOFW2HRvsBDDkWbX/eMMfUVRBP8dlj8Tc=
ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key;
t=1789592237; c=relaxed/simple;
bh=l7pt2i/K4x5O1wRsCFF6O5XPOI8zwkqO1QuU1TZ5+o4=;
h=DKIM-Signature:MIME-Version:From:Date:Message-ID:Subject:To;
b=h+C/9s040P/jOCZSsmb7/1MFa1N1DmTZNebW5w4jF3LNJWAKKjWe89NoJJa9AxnnfZbwFtraK5t6GLkLhe4SkQatIvHhHKM6VO+MMHBLg+bjBFOCQZygq6lyUu92aS9zpek0w5ykqDI1IpKHSput+2gT2rTYIvz2LAcpp3KC3Es=
ARC-Authentication-Results: i=1; sourceware.org;
dkim=pass (1024-bit key, unprotected)
header.d=redhat.com header.i=@redhat.com header.a=rsa-sha256
header.s=mimecast20190719 header.b=MUfuhs3B
DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 1306B4BA23F4
X-MC-Unique: qMyCX-f2PgSyxkEeOEoE5g-1
X-Mimecast-MFC-AGG-ID: qMyCX-f2PgSyxkEeOEoE5g_1789592234
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
d=1e100.net; s=20260707; t=1789592233; x=1790197033;
h=content-type:cc:to:subject:message-id:date:from:in-reply-to
:references:mime-version:x-gm-gg:x-gm-message-state:from:to:cc
:subject:date:message-id:reply-to:content-type;
bh=fqBmuW5TpCC1Niyj1jk9nscu/IUZKDmwkcn/8jaV6zg=;
b=oSIyJUysRbxdjZBQXQQbBIXfffeutZiaJFSRcMcm/sKVVvWFNyqWBnjRid6j/rx7Ad
pk42mC4kmBDCGbXq67g7y8WGnn7H5wftaqlkn+1Q8E8KwRCJZi1l7B3b6Qc+ilE2OgqJ
3ow+XfFtaeDJ0ndLbAcZKeGAmFKFh1Bcnl/awyQ+c6CFdZOIN7hsOGPtcUdVJm/8aU6w
bGwyzedWoQ0MfLsnnRhnYkpcyFhukVJ9kecWCEJkTl08/9Rfm4Ib6pREr/b2Y/kXJNSY
CLHsmA6hLtKz+gjBq6A0Y2GQSSXYHEhe4tGVimsgr01V8hxGpIPnB+gVQDBEQh9klOku
z9hA==
X-Forwarded-Encrypted: i=1;
AKwUvBxITMJzR6FryGaR2xClrg7TgZuLDjwNYsSdexD3Gp6QuWMHPs0ApE/+9VSibF5tBYvyALjeYE8=@cygwin.com
X-Gm-Message-State: AFuF++nar092MSd52eTqnwTByXBTh0bUTskzCFXFlnZuAaNWZ/+D+Qtf
c1LKXUMiX0CVBXj5ZLVL3PAFt6r0pzfptOp/gK49B4/+zaop5T5IWcWBWfY9SwTCffLEFCoGDB9
Ru81LsHlcrxAvPKfs05VTlSnauJS/GJawnhO6JiA5YfG6YT71uMbS6Qf77EReTSkmFVcRB+LM10
uN7U1V9/8lNI+9giGYUKSCCz3+Kw==
X-Gm-Gg: AYBFou0N/3CAx7CkJWIs18xJ8hIGxSkKOoOmv6jy3p4N7TJR635rDvdOPluhLrygKlu
VsVTEIwYh8vDJ023A123iYGfCT2reVpC2BenwvXF0/ABHlGQmqpOWpzHZb21QVveyUu4CvvB3Vn
lgTDKT57JtVNtk1HeToKTrDLoiUEDaL3ZvhK5hP50h0hfSIjGZum+cCTORCg==
X-Received: by 2002:a17:90a:51c1:b0:39e:2e7c:d43c with SMTP id
98e67ed59e1d1-39e2e7ce429mr3455224a91.7.1789592233310;
Wed, 16 Sep 2026 13:57:13 -0700 (PDT)
X-Received: by 2002:a17:90a:51c1:b0:39e:2e7c:d43c with SMTP id
98e67ed59e1d1-39e2e7ce429mr3455192a91.7.1789592232832; Wed, 16 Sep 2026
13:57:12 -0700 (PDT)
MIME-Version: 1.0
References: <PH8PR09MB985214421DEECD10627186F4A5B02 AT PH8PR09MB9852 DOT namprd09 DOT prod DOT outlook DOT com>
<38210c9c-416b-4a14-9cf5-bebcbd031925 AT SystematicSW DOT ab DOT ca>
<CAOox84uK9pi7ZOhqmfekiqssU2v6sBLfSTxBpGbKmkXcUGyDEQ AT mail DOT gmail DOT com>
<PH8PR09MB9852A8C93920AE22C0820838A5BA2 AT PH8PR09MB9852 DOT namprd09 DOT prod DOT outlook DOT com>
<CAOox84t4yJBWyZeF5RGT5PH7gTHpN=8mG_hS8XWmEKgpoUyUaw AT mail DOT gmail DOT com>
<BNYP110MB285039B31856C4689DB3529D9AB9A AT BNYP110MB2850 DOT NAMP110 DOT PROD DOT OUTLOOK DOT COM>
In-Reply-To: <BNYP110MB285039B31856C4689DB3529D9AB9A@BNYP110MB2850.NAMP110.PROD.OUTLOOK.COM>
Date: Wed, 16 Sep 2026 16:57:00 -0400
X-Gm-Features: AcwNN1U5QjouTv1IdkYrzdpmpu-Nj0aGoVRKqnmI84pJN0ISK4zmS3EdE0-vhRw
Message-ID: <CAOox84utDMgNHEZX6FecGU6UukRFcnUk94VZ4AYULoQruXKuFQ@mail.gmail.com>
Subject: Re: Newlib's strtol() is not standard-compliant
To: "Howland, Craig D. - US" <craig DOT howland AT caci DOT com>
Cc: "newlib AT sourceware DOT org" <newlib AT sourceware DOT org>,
"cygwin AT cygwin DOT com" <cygwin AT cygwin DOT com>
X-Mimecast-Spam-Score: 0
X-Mimecast-MFC-PROC-ID: KT7ljkfHSkOxERR4iymoB2Lkk_ZQHCBH2OFjxlSQQLc_1789592234
X-Mimecast-Originator: redhat.com
X-Content-Filtered-By: Mailman/MimeDel 2.1.30
X-BeenThere: cygwin AT cygwin DOT com
X-Mailman-Version: 2.1.30
List-Id: General Cygwin discussions and problem reports <cygwin.cygwin.com>
List-Archive: <https://cygwin.com/pipermail/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-request AT cygwin DOT com?subject=help>
List-Subscribe: <https://cygwin.com/mailman/listinfo/cygwin>,
<mailto:cygwin-request AT cygwin DOT com?subject=subscribe>
From: Jeff Johnston via Cygwin <cygwin AT cygwin DOT com>
Reply-To: Jeff Johnston <jjohnstn AT redhat DOT com>
Sender: "Cygwin" <cygwin-bounces~archive-cygwin=delorie DOT com AT cygwin DOT com>
X-MIME-Autoconverted: from base64 to 8bit by delorie.com id 68GKvtvB2666350

Ok.  Will make a similar change to each.

-- Jeff J.

On Wed, Sep 16, 2026 at 3:11 PM Howland, Craig D. - US <
craig DOT howland AT caci DOT com> wrote:

> Jeff:
>      strtoll() and other friends are based on the same code as strtol(),
> so multiple other places need the same help.  In a quick look, strtoll.c,
> strtoul.c, strtoull.c, strtoimax.c, and strtoumax.c, as well as probably
> the corresponding 6 wcs*.c files need the same edit.
> Craig
>
> ------------------------------
> *From:* Jeff Johnston <jjohnstn AT redhat DOT com>
> *Sent:* Tuesday, September 15, 2026 11:11 AM
> *To:* Lavrentiev, Anton (NIH/NLM/NCBI) [C] <lavr AT ncbi DOT nlm DOT nih DOT gov>
> *Cc:* newlib AT sourceware DOT org <newlib AT sourceware DOT org>; cygwin AT cygwin DOT com <
> cygwin AT cygwin DOT com>
> *Subject:* Re: [EXTERNAL] Re: Newlib's strtol() is not standard-compliant
>
>
>
>
> Your tweak makes sense, thanks.  Compared against glibc with some extra
> examples with sign and whitespace.
>
> -- Jeff J.
>
> On Mon, Sep 14, 2026 at 10:35 PM Lavrentiev, Anton (NIH/NLM/NCBI) [C] <
> lavr AT ncbi DOT nlm DOT nih DOT gov> wrote:
>
> > A fix has been pushed to main.
> >
> > -- Jeff J.
>
> Thanks.  I checked the fix but unfortunately it does not seem to be
> complete:
>
> "nptr" is not tracking the leading whitespace and / or a sign
> that might appear prior to "0x".  So endptr is not going to
> receive a correct value, in either or both of those cases.
>
> Maybe to assign "nptr" with the value of "s" (before bumping it by 2)
> instead of doing just the ++ increment?
>
> Anton Lavrentiev
> Contractor NIH/NLM/NCBI
>
>
> ------------------------------
>
> This electronic message contains information from CACI International Inc
> or subsidiary companies, which may be company sensitive, proprietary,
> privileged or otherwise protected from disclosure. The information is
> intended to be used solely by the recipient(s) named above. If you are not
> an intended recipient, be aware that any review, disclosure, copying,
> distribution or use of this transmission or its contents is prohibited. If
> you have received this transmission in error, please notify the sender
> immediately.
>

-- 
Problem reports:      https://cygwin.com/problems.html
FAQ:                  https://cygwin.com/faq/
Documentation:        https://cygwin.com/docs.html
Unsubscribe info:     https://cygwin.com/ml/#unsubscribe-simple

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2026   by DJ Delorie     Updated Dec 4 2026