[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: scm_i_print_symbol_name() in libguile/print.c ...
From: |
Andy Wingo |
Subject: |
Re: scm_i_print_symbol_name() in libguile/print.c ... |
Date: |
Mon, 11 Apr 2011 13:50:46 +0200 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/23.2 (gnu/linux) |
Hi Wolfgang,
On Tue 05 Apr 2011 17:27, Wolfgang J Moeller <address@hidden> 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/