[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
scm_i_print_symbol_name() in libguile/print.c ...
From: |
Wolfgang J Moeller |
Subject: |
scm_i_print_symbol_name() in libguile/print.c ... |
Date: |
Tue, 5 Apr 2011 17:27:46 +0200 (CEST) |
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/
- scm_i_print_symbol_name() in libguile/print.c ...,
Wolfgang J Moeller <=