From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Kevin Ryde Newsgroups: gmane.lisp.guile.bugs Subject: [bugs #11197] Error in string->number Date: Sat, 04 Dec 2004 17:08:54 -0500 Message-ID: NNTP-Posting-Host: deer.gmane.org X-Trace: sea.gmane.org 1102197542 21633 80.91.229.6 (4 Dec 2004 21:59:02 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Sat, 4 Dec 2004 21:59:02 +0000 (UTC) Original-X-From: bug-guile-bounces+guile-bugs=m.gmane.org@gnu.org Sat Dec 04 22:58:58 2004 Return-path: Original-Received: from lists.gnu.org ([199.232.76.165]) by deer.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 1Cahve-00060Z-00 for ; Sat, 04 Dec 2004 22:58:58 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1Cai5J-0005p1-OL for guile-bugs@m.gmane.org; Sat, 04 Dec 2004 17:08:57 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.33) id 1Cai5G-0005ov-MD for bug-guile@gnu.org; Sat, 04 Dec 2004 17:08:54 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.33) id 1Cai5G-0005oj-96 for bug-guile@gnu.org; Sat, 04 Dec 2004 17:08:54 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1Cai5G-0005og-5u for bug-guile@gnu.org; Sat, 04 Dec 2004 17:08:54 -0500 Original-Received: from [199.232.41.4] (helo=savannah.gnu.org) by monty-python.gnu.org with esmtp (TLSv1:DES-CBC3-SHA:168) (Exim 4.34) id 1CahvL-0002Sk-CH for bug-guile@gnu.org; Sat, 04 Dec 2004 16:58:39 -0500 Original-Received: from localhost ([127.0.0.1]) by savannah.gnu.org with smtp (Exim 4.34) id 1Cahz4-0008Oc-Fz for bug-guile@gnu.org; Sat, 04 Dec 2004 17:02:30 -0500 Original-To: bug-guile@gnu.org X-Savannah-Server: savannah.gnu.org:443 [199.232.41.3] X-Savannah-Project: guile X-Savannah-Artifact: bugs X-Savannah-Artifact-ID: 11197 User-Agent: Mozilla/5.0 (X11; U; Linux i586; en-US; rv:1.2.1) Gecko/20021226 Debian/1.2.1-9 X-Apparently-From: 61.8.45.133 X-Copy-To: Array X-BeenThere: bug-guile@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Bug reports for GUILE, GNU's Ubiquitous Extension Language" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: bug-guile-bounces+guile-bugs=m.gmane.org@gnu.org Errors-To: bug-guile-bounces+guile-bugs=m.gmane.org@gnu.org Xref: main.gmane.org gmane.lisp.guile.bugs:2196 X-Report-Spam: http://spam.gmane.org/gmane.lisp.guile.bugs:2196 This mail is an automated notification from the bugs tracker of the project: Guile. /**************************************************************************/ [bugs #11197] Latest Modifications: Changes by: Kevin Ryde 'Date: Sat 12/04/04 at 22:02 (Australia/NSW) ------------------ Additional Follow-up Comments ---------------------------- In fact only bases 2, 10 and 16 look right. Others have a bad bignum size calculation and overflow in various cases. Only bases 2, 8, 10 and 16 are documented as supported, though others (below 16) are not explicitly rejected. Maybe that should change too. /**************************************************************************/ [bugs #11197] Full Item Snapshot: URL: Project: Guile Submitted by: 0 On: Fri 12/03/04 at 08:10 Category: None Severity: 5 - Average Item Group: None Resolution: None Privacy: Public Assigned to: None Status: Open Summary: Error in string->number Original Submission: guile> (string->number "111111" 7) 19608 guile> (string->number "111111" 8) 37449 guile> (string->number "111111" 9) :4:1: In procedure bignum in expression (string->number "111111" 9): :4:1: Numerical overflow ABORT: (numerical-overflow) Type "(backtrace)" to get more information or "(debug)" to enter the debugger. guile> (string->number "111111" 10) 111111 guile> (string->number "111111" 11) 177156 Follow-up Comments ------------------ ------------------------------------------------------- Date: Sat 12/04/04 at 22:02 By: Kevin Ryde In fact only bases 2, 10 and 16 look right. Others have a bad bignum size calculation and overflow in various cases. Only bases 2, 8, 10 and 16 are documented as supported, though others (below 16) are not explicitly rejected. Maybe that should change too. For detailed info, follow this link: _______________________________________________ Message sent via/by Savannah http://savannah.gnu.org/ _______________________________________________ Bug-guile mailing list Bug-guile@gnu.org http://lists.gnu.org/mailman/listinfo/bug-guile