From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Wolfgang J Moeller Newsgroups: gmane.lisp.guile.bugs Subject: scm_i_print_symbol_name() in libguile/print.c ... Date: Tue, 5 Apr 2011 17:27:46 +0200 (CEST) Message-ID: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-Trace: dough.gmane.org 1302017538 445 80.91.229.12 (5 Apr 2011 15:32:18 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Tue, 5 Apr 2011 15:32:18 +0000 (UTC) To: bug-guile@gnu.org Original-X-From: bug-guile-bounces+guile-bugs=m.gmane.org@gnu.org Tue Apr 05 17:32:14 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 1Q78Ef-000848-Q6 for guile-bugs@m.gmane.org; Tue, 05 Apr 2011 17:32:05 +0200 Original-Received: from localhost ([127.0.0.1]:59721 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Q78Al-0004Zf-Gl for guile-bugs@m.gmane.org; Tue, 05 Apr 2011 11:28:03 -0400 Original-Received: from [140.186.70.92] (port=57423 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Q78Ac-0004Fq-S6 for bug-guile@gnu.org; Tue, 05 Apr 2011 11:27:58 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Q78AX-0003LT-VD for bug-guile@gnu.org; Tue, 05 Apr 2011 11:27:54 -0400 Original-Received: from mail-boxes.gwdg.de ([134.76.10.22]:50014) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Q78AX-0003Ku-QF for bug-guile@gnu.org; Tue, 05 Apr 2011 11:27:49 -0400 Original-Received: from gwdw03.gwdg.de ([134.76.5.10]) by mailer.gwdg.de with esmtps (TLSv1:AES256-SHA:256) (Exim 4.72) (envelope-from ) id 1Q78AV-0007yQ-Kj for bug-guile@gnu.org; Tue, 05 Apr 2011 17:27:47 +0200 X-Virus-Scanned: (clean) by exiscan+sophie X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.4-2.6 X-Received-From: 134.76.10.22 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:5427 Archived-At: 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 . (*) Apparently, reading a "weird" symbol whose name contains "}#" isn't provided for. Example: === scheme@(guile-user)> (string-length (symbol->string '#{a b}#)) $1 = 3 scheme@(guile-user)> (string-length (symbol->string (with-input-from-string (with-output-to-string (lambda () (display '#{a b}#))) (lambda () (read))))) $2 = 4 === Best regards, Wolfgang J. Moeller, Tel. +49 551 47361, wjmheenes.com 37085 Goettingen, Germany | Disclaimer: No claim intended! http://www.wjmoeller.de/ -+-------- http://www.heenes.com/