From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Scott McPeak Newsgroups: gmane.lisp.guile.bugs Subject: [bug #27577] inet-ntop example is missing quotes around "ffff:ffff:..." Date: Thu, 01 Oct 2009 21:34:54 +0000 Message-ID: <20091001-213453.sv54812.20679@savannah.gnu.org> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain;charset=UTF-8 X-Trace: ger.gmane.org 1254432921 10350 80.91.229.12 (1 Oct 2009 21:35:21 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 1 Oct 2009 21:35:21 +0000 (UTC) To: Scott McPeak , bug-guile@gnu.org Original-X-From: bug-guile-bounces+guile-bugs=m.gmane.org@gnu.org Thu Oct 01 23:35:14 2009 Return-path: Envelope-to: guile-bugs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1MtTIv-0005km-2A for guile-bugs@m.gmane.org; Thu, 01 Oct 2009 23:35:13 +0200 Original-Received: from localhost ([127.0.0.1]:41629 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MtTIu-0002eB-Ci for guile-bugs@m.gmane.org; Thu, 01 Oct 2009 17:35:12 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1MtTIi-0002Yq-MF for bug-guile@gnu.org; Thu, 01 Oct 2009 17:35:00 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1MtTId-0002RA-JI for bug-guile@gnu.org; Thu, 01 Oct 2009 17:35:00 -0400 Original-Received: from [199.232.76.173] (port=47585 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MtTId-0002Qo-CA for bug-guile@gnu.org; Thu, 01 Oct 2009 17:34:55 -0400 Original-Received: from savannah.gnu.org ([199.232.41.3]:55190 helo=sv.gnu.org) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1MtTId-0004WE-2q for bug-guile@gnu.org; Thu, 01 Oct 2009 17:34:55 -0400 Original-Received: from [10.0.0.103] (helo=savannah.gnu.org) by sv.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1MtTIc-00031f-Ds; Thu, 01 Oct 2009 21:34:54 +0000 Original-Received: from www-data by savannah.gnu.org with local (Exim 4.69) (envelope-from ) id 1MtTIc-00031c-8J; Thu, 01 Oct 2009 21:34:54 +0000 X-Savane-Server: savannah.gnu.org:443 [10.0.0.103] X-Savane-Project: guile X-Savane-Tracker: bugs X-Savane-Item-ID: 27577 User-Agent: Mozilla/5.0 (X11; U; Linux i686 (x86_64); en-US; rv:1.9.1.3) Gecko/20090824 Firefox/3.5.3 X-Apparently-From: 38.99.3.113 (Savane authenticated user smcpeak) Original-References: In-Reply-To: X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 2) 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: news.gmane.org gmane.lisp.guile.bugs:4334 Archived-At: URL: Summary: inet-ntop example is missing quotes around "ffff:ffff:..." Project: Guile Submitted by: smcpeak Submitted on: Thu 01 Oct 2009 09:34:53 PM GMT Category: None Severity: 3 - Normal Item Group: None Status: None Privacy: Public Assigned to: None Open/Closed: Open Discussion Lock: Any _______________________________________________________ Details: The documentation for inet-ntop: http://www.gnu.org/software/guile/docs/docs-1.8/guile-ref/Network-Address-Conversion.html#index-inet_002dntop-3217 Says: (inet-ntop AF_INET 2130706433) => "127.0.0.1" (inet-ntop AF_INET6 (- (expt 2 128) 1)) => ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff However, the final value is a string, so should be quoted: guile> (inet-ntop AF_INET 2130706433) "127.0.0.1" guile> (inet-ntop AF_INET6 (- (expt 2 128) 1)) "ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff" _______________________________________________________ Reply to this item at: _______________________________________________ Message sent via/by Savannah http://savannah.gnu.org/