From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 121288 invoked by alias); 14 Aug 2018 19:44:23 -0000 Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner@cygwin.com Mail-Followup-To: cygwin@cygwin.com Received: (qmail 119480 invoked by uid 89); 14 Aug 2018 19:44:22 -0000 Authentication-Results: sourceware.org; auth=none X-Spam-SWARE-Status: No, score=-2.0 required=5.0 tests=AWL,BAYES_00,RCVD_IN_DNSWL_NONE,SPF_PASS,URIBL_RED autolearn=ham version=3.3.2 spammy=H*Ad:U*corinna-cygwin X-HELO: relay1.mentorg.com Received: from relay1.mentorg.com (HELO relay1.mentorg.com) (192.94.38.131) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Tue, 14 Aug 2018 19:44:21 +0000 Received: from nat-ies.mentorg.com ([192.94.31.2] helo=SVR-IES-MBX-03.mgc.mentorg.com) by relay1.mentorg.com with esmtps (TLSv1.2:ECDHE-RSA-AES256-SHA384:256) id 1fpfEp-00030I-9w from joseph_myers@mentor.com ; Tue, 14 Aug 2018 12:44:19 -0700 Received: from digraph.polyomino.org.uk (137.202.0.87) by SVR-IES-MBX-03.mgc.mentorg.com (139.181.222.3) with Microsoft SMTP Server (TLS) id 15.0.1320.4; Tue, 14 Aug 2018 20:44:16 +0100 Received: from jsm28 (helo=localhost) by digraph.polyomino.org.uk with local-esmtp (Exim 4.86_2) (envelope-from ) id 1fpfEl-0007ar-Qm; Tue, 14 Aug 2018 19:44:15 +0000 Date: Tue, 14 Aug 2018 20:05:00 -0000 From: Joseph Myers To: Masamichi Hosoda CC: , , Subject: Re: strtod ("nan") returns negative NaN In-Reply-To: <20180815.000539.1012490218433540835.trueroad@trueroad.jp> Message-ID: References: <20180814.134527.917341694729989717.trueroad@trueroad.jp> <20180814_dot_134527_dot_917341694729989717_dot_trueroad_at_trueroad_dot_jp> <20180814095618.GT3747@calimero.vinschen.de> <20180815.000539.1012490218433540835.trueroad@trueroad.jp> User-Agent: Alpine 2.20 (DEB 67 2015-01-07) MIME-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" X-SW-Source: 2018-08/txt/msg00188.txt.bz2 On Wed, 15 Aug 2018, Masamichi Hosoda wrote: > On Linux with glibc, both strtod ("nan") > and strtod ("-nan") return positive NaN. > > So I've created the patch that behaves like glibc. > Both strtod ("nan") and strtod ("-nan") return positive NaN. I would suggest that you should not consider fixed bugs in glibc (bug 23007 in this case) to be appropriate to emulate in other libraries. -- Joseph S. Myers joseph@codesourcery.com -- Problem reports: http://cygwin.com/problems.html FAQ: http://cygwin.com/faq/ Documentation: http://cygwin.com/docs.html Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 122189 invoked by alias); 14 Aug 2018 19:44:23 -0000 Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner@cygwin.com Mail-Followup-To: cygwin@cygwin.com Received: (qmail 120288 invoked by uid 9078); 14 Aug 2018 19:44:22 -0000 Received: (qmail 119480 invoked by uid 89); 14 Aug 2018 19:44:22 -0000 Authentication-Results: sourceware.org; auth=none X-Spam-SWARE-Status: No, score=-2.0 required=5.0 tests=AWL,BAYES_00,RCVD_IN_DNSWL_NONE,SPF_PASS,URIBL_RED autolearn=ham version=3.3.2 spammy=H*Ad:U*corinna-cygwin X-HELO: relay1.mentorg.com Received: from relay1.mentorg.com (HELO relay1.mentorg.com) (192.94.38.131) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Tue, 14 Aug 2018 19:44:21 +0000 Received: from nat-ies.mentorg.com ([192.94.31.2] helo=SVR-IES-MBX-03.mgc.mentorg.com) by relay1.mentorg.com with esmtps (TLSv1.2:ECDHE-RSA-AES256-SHA384:256) id 1fpfEp-00030I-9w from joseph_myers@mentor.com ; Tue, 14 Aug 2018 12:44:19 -0700 Received: from digraph.polyomino.org.uk (137.202.0.87) by SVR-IES-MBX-03.mgc.mentorg.com (139.181.222.3) with Microsoft SMTP Server (TLS) id 15.0.1320.4; Tue, 14 Aug 2018 20:44:16 +0100 Received: from jsm28 (helo=localhost) by digraph.polyomino.org.uk with local-esmtp (Exim 4.86_2) (envelope-from ) id 1fpfEl-0007ar-Qm; Tue, 14 Aug 2018 19:44:15 +0000 Date: Tue, 14 Aug 2018 20:19:00 -0000 From: Joseph Myers To: Masamichi Hosoda CC: , , Subject: Re: strtod ("nan") returns negative NaN In-Reply-To: <20180815.000539.1012490218433540835.trueroad@trueroad.jp> Message-ID: References: <20180814.134527.917341694729989717.trueroad@trueroad.jp> <20180814_dot_134527_dot_917341694729989717_dot_trueroad_at_trueroad_dot_jp> <20180814095618.GT3747@calimero.vinschen.de> <20180815.000539.1012490218433540835.trueroad@trueroad.jp> User-Agent: Alpine 2.20 (DEB 67 2015-01-07) MIME-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" X-SW-Source: 2018-08/txt/msg00189.txt.bz2 Message-ID: <20180814201900.ZbLgkojzJDpKFLRHeYRb6GMofOXOfTnQz8jEhiwi6kI@z> On Wed, 15 Aug 2018, Masamichi Hosoda wrote: > On Linux with glibc, both strtod ("nan") > and strtod ("-nan") return positive NaN. > > So I've created the patch that behaves like glibc. > Both strtod ("nan") and strtod ("-nan") return positive NaN. I would suggest that you should not consider fixed bugs in glibc (bug 23007 in this case) to be appropriate to emulate in other libraries. -- Joseph S. Myers joseph@codesourcery.com -- Problem reports: http://cygwin.com/problems.html FAQ: http://cygwin.com/faq/ Documentation: http://cygwin.com/docs.html Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple