From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Andy Wingo Newsgroups: gmane.lisp.guile.bugs Subject: Re: scm_i_print_symbol_name() in libguile/print.c ... Date: Mon, 11 Apr 2011 13:50:46 +0200 Message-ID: References: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: dough.gmane.org 1302522641 31437 80.91.229.12 (11 Apr 2011 11:50:41 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Mon, 11 Apr 2011 11:50:41 +0000 (UTC) Cc: bug-guile@gnu.org To: Wolfgang J Moeller Original-X-From: bug-guile-bounces+guile-bugs=m.gmane.org@gnu.org Mon Apr 11 13:50:37 2011 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.69) (envelope-from ) id 1Q9Fda-0002oI-7F for guile-bugs@m.gmane.org; Mon, 11 Apr 2011 13:50:34 +0200 Original-Received: from localhost ([127.0.0.1]:35856 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Q9FdY-0002Uo-DU for guile-bugs@m.gmane.org; Mon, 11 Apr 2011 07:50:32 -0400 Original-Received: from [140.186.70.92] (port=42875 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Q9FdR-0002Qq-PQ for bug-guile@gnu.org; Mon, 11 Apr 2011 07:50:27 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Q9FdM-0000vz-8Q for bug-guile@gnu.org; Mon, 11 Apr 2011 07:50:21 -0400 Original-Received: from a-pb-sasl-sd.pobox.com ([64.74.157.62]:50262 helo=sasl.smtp.pobox.com) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Q9FdM-0000vv-54 for bug-guile@gnu.org; Mon, 11 Apr 2011 07:50:20 -0400 Original-Received: from sasl.smtp.pobox.com (unknown [127.0.0.1]) by a-pb-sasl-sd.pobox.com (Postfix) with ESMTP id DC6344C17; Mon, 11 Apr 2011 07:52:16 -0400 (EDT) DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=pobox.com; h=from:to:cc :subject:references:date:in-reply-to:message-id:mime-version :content-type; s=sasl; bh=cCH/z6MG5L4GLCMQWaeUgAS+ecc=; b=oecJ+u IosSiqeBz9UdZxy455znhS281m1n3IVkAuS6+lGRiyUv+SNWA0POSgxB3qmeA5Oh O8QfW3uymWA10Y6PMXHzzWKDCapUOEtKfSkKT9h16Zz1G9n2KQZ6W8viTKnklwGj lgZGx123sugYZUiWN1Laq9XxNkQCHKFwYcjNA= DomainKey-Signature: a=rsa-sha1; c=nofws; d=pobox.com; h=from:to:cc :subject:references:date:in-reply-to:message-id:mime-version :content-type; q=dns; s=sasl; b=VHZ1JPwpblYnSoXk3V8wmJ4F6F7nkj2B 7ckedYS4Smx8AN5xuij8wzfVITZI7e38GolLu0BJ8E7mNNGziXTLrZlYUKHvObkW BFkrpMsLbG8Zk/3lebFL5WwIU85ubOgPIgH8HiSJgTuhzk250RWP1xPz31M5+1ZI 6b/bNvsdcAs= Original-Received: from a-pb-sasl-sd.pobox.com (unknown [127.0.0.1]) by a-pb-sasl-sd.pobox.com (Postfix) with ESMTP id C990C4C14; Mon, 11 Apr 2011 07:52:14 -0400 (EDT) Original-Received: from unquote.localdomain (unknown [90.164.198.39]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by a-pb-sasl-sd.pobox.com (Postfix) with ESMTPSA id 37DA64C11; Mon, 11 Apr 2011 07:52:12 -0400 (EDT) In-Reply-To: (Wolfgang J. Moeller's message of "Tue, 5 Apr 2011 17:27:46 +0200 (CEST)") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.2 (gnu/linux) X-Pobox-Relay-ID: 24AB25BA-6432-11E0-903E-E8AB60295C12-02397024!a-pb-sasl-sd.pobox.com X-detected-operating-system: by eggs.gnu.org: Solaris 10 (beta) X-Received-From: 64.74.157.62 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:5441 Archived-At: Hi Wolfgang, On Tue 05 Apr 2011 17:27, Wolfgang J Moeller writes: > scm_i_print_symbol_name() in libguile/print.c ought not insert backslashes > into "weird" symbol names that it prints using #{ ... }#, > because the "extended read syntax" (in agreement with the documentation) > doesn't treat backslashes specially, nor _usually_ needs escaping. (*) > > I notice that the bug is already present in GUILE V1.8 . Indeed, good catch. I had seen this before but didn't fully understand it. > (*) Apparently, reading a "weird" symbol whose name contains "}#" > isn't provided for. Also; irritating. Relatedly it does not seem that Guile supports R6RS hex escapes in symbols. I guess the right thing to do is to allow for R6RS hex escapes in symbols, and escape '}', along with anything that's not a printable character. Andy -- http://wingolog.org/