From: Wolfgang J Moeller <wjm@heenes.com>
To: bug-guile@gnu.org
Subject: scm_i_print_symbol_name() in libguile/print.c ...
Date: Tue, 5 Apr 2011 17:27:46 +0200 (CEST) [thread overview]
Message-ID: <alpine.LNX.2.00.1104051619430.26447@gwdw03.gwdg.de> (raw)
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, wjm<AT>heenes.com
37085 Goettingen, Germany | Disclaimer: No claim intended!
http://www.wjmoeller.de/ -+-------- http://www.heenes.com/
next reply other threads:[~2011-04-05 15:27 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-04-05 15:27 Wolfgang J Moeller [this message]
2011-04-11 11:50 ` scm_i_print_symbol_name() in libguile/print.c Andy Wingo
2011-04-11 12:23 ` Wolfgang J Moeller
2011-04-11 15:00 ` Andy Wingo
2011-04-11 11:50 ` Andy Wingo
2011-04-11 13:08 ` Wolfgang J Moeller
2011-04-11 15:16 ` Andy Wingo
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.gnu.org/software/guile/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=alpine.LNX.2.00.1104051619430.26447@gwdw03.gwdg.de \
--to=wjm@heenes.com \
--cc=bug-guile@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).