From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: taylanbayirli@gmail.com ("Taylan Ulrich =?UTF-8?Q?Bay=C4=B1rl=C4=B1/Kammer?=") Newsgroups: gmane.lisp.guile.bugs Subject: bug#18932: string->number errors on e.g. "1e400xyz" Date: Mon, 03 Nov 2014 10:20:58 +0100 Message-ID: <877fzcbpxh.fsf@taylan.uni.cx> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Trace: ger.gmane.org 1415006535 936 80.91.229.3 (3 Nov 2014 09:22:15 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 3 Nov 2014 09:22:15 +0000 (UTC) To: 18932@debbugs.gnu.org Original-X-From: bug-guile-bounces+guile-bugs=m.gmane.org@gnu.org Mon Nov 03 10:22:08 2014 Return-path: Envelope-to: guile-bugs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1XlDpv-0003HC-SS for guile-bugs@m.gmane.org; Mon, 03 Nov 2014 10:22:08 +0100 Original-Received: from localhost ([::1]:33010 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XlDpv-0000s6-G0 for guile-bugs@m.gmane.org; Mon, 03 Nov 2014 04:22:07 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:55672) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XlDpr-0000ry-OR for bug-guile@gnu.org; Mon, 03 Nov 2014 04:22:04 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XlDpq-0001AR-Me for bug-guile@gnu.org; Mon, 03 Nov 2014 04:22:03 -0500 Original-Received: from debbugs.gnu.org ([140.186.70.43]:49590) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XlDpq-0001AJ-Jg for bug-guile@gnu.org; Mon, 03 Nov 2014 04:22:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1XlDpq-0007Xl-8T for bug-guile@gnu.org; Mon, 03 Nov 2014 04:22:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: taylanbayirli@gmail.com ("Taylan Ulrich =?UTF-8?Q?Bay=C4=B1rl=C4=B1/Kammer?=") Original-Sender: "Debbugs-submit" Resent-CC: bug-guile@gnu.org Resent-Date: Mon, 03 Nov 2014 09:22:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 18932 X-GNU-PR-Package: guile X-GNU-PR-Keywords: X-Debbugs-Original-To: bug-guile@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.141500647328920 (code B ref -1); Mon, 03 Nov 2014 09:22:02 +0000 Original-Received: (at submit) by debbugs.gnu.org; 3 Nov 2014 09:21:13 +0000 Original-Received: from localhost ([127.0.0.1]:46803 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1XlDp3-0007WN-Ds for submit@debbugs.gnu.org; Mon, 03 Nov 2014 04:21:13 -0500 Original-Received: from eggs.gnu.org ([208.118.235.92]:53708) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1XlDp1-0007WB-M8 for submit@debbugs.gnu.org; Mon, 03 Nov 2014 04:21:12 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XlDov-0000jO-Oh for submit@debbugs.gnu.org; Mon, 03 Nov 2014 04:21:06 -0500 Original-Received: from lists.gnu.org ([2001:4830:134:3::11]:50785) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XlDov-0000jK-Ma for submit@debbugs.gnu.org; Mon, 03 Nov 2014 04:21:05 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:55427) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XlDou-0000oH-UD for bug-guile@gnu.org; Mon, 03 Nov 2014 04:21:05 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XlDou-0000im-0x for bug-guile@gnu.org; Mon, 03 Nov 2014 04:21:04 -0500 Original-Received: from mail-lb0-x231.google.com ([2a00:1450:4010:c04::231]:43534) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XlDot-0000iP-Ms for bug-guile@gnu.org; Mon, 03 Nov 2014 04:21:03 -0500 Original-Received: by mail-lb0-f177.google.com with SMTP id z12so497112lbi.36 for ; Mon, 03 Nov 2014 01:21:01 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=date:message-id:from:to:subject:mime-version:content-type :content-transfer-encoding; bh=YX2J0MhfVETmQ6QYxu3UHqayV0Fgsppt476zqoqNVko=; b=uk5C5AaR5DzknRHvg0pi3EKj03UNTfZqnZUvhKqm07bx1U29S5rUekZGnje6RgPc9t YzR8Y1Fqs4nlEvpFOv3rsfyWklsSSCwxOLmmchSx034mA2PWeEO6nAI0J841mGJwtiwQ fWUGsu22Xy6mDORoA1U7qj2O2WkHm71S0pZ7SVWBlhRImCdxFmDodFyJBX94oA0mv0E5 e7UGjpuPCFlYfrKMd6uT+3efotQZE1oVY8MbCKWGACgbm9kRQfJ4LiumI+bnz3SR923N pj+F7rRtUh+w+7qDNta3Arjv3J7v3aJ6AMPGE1miWfuudUsZq3lhJH0Zg7qaU39EyXLB khTg== X-Received: by 10.112.137.202 with SMTP id qk10mr49152943lbb.0.1415006461509; Mon, 03 Nov 2014 01:21:01 -0800 (PST) Original-Received: from taylan.uni.cx (p200300514A13A2F70213E8FFFEED36FB.dip0.t-ipconnect.de. [2003:51:4a13:a2f7:213:e8ff:feed:36fb]) by mx.google.com with ESMTPSA id t5sm7709301lat.46.2014.11.03.01.21.00 for (version=TLSv1.2 cipher=RC4-SHA bits=128/128); Mon, 03 Nov 2014 01:21:01 -0800 (PST) X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x X-Received-From: 140.186.70.43 X-BeenThere: bug-guile@gnu.org List-Id: "Bug reports for GUILE, GNU's Ubiquitous Extension Language" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-guile-bounces+guile-bugs=m.gmane.org@gnu.org Original-Sender: bug-guile-bounces+guile-bugs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.lisp.guile.bugs:7628 Archived-At: When string->number is given a number in scientific notation with a very high exponent, it errors with "value out of range." I don't know if that is acceptable, but what seems unacceptable is that it errors even if the string contains further characters and is thus not a valid number; R5RS says that #f should be returned when the string does not contain a syntactically valid number, and R7RS adds explicitly that string->number never signals an error due to the contents of the given string. Apparently MIT/GNU Scheme has the same bug, as reported by 'ecraven' on #scheme. From other systems I tested, Racket, Gauche, Gambit, and Chibi return +inf.0 for numbers with a too high exponent; I'm told Chicken also does so when the "numbers egg" is loaded. Taylan