* bug#31864: Hex-escaped r6rs symbols are not read correctly
@ 2018-06-16 21:04 Göran Weinholt
0 siblings, 0 replies; only message in thread
From: Göran Weinholt @ 2018-06-16 21:04 UTC (permalink / raw)
To: 31864
Hello schemers!
R6RS specifies an inline hex escape syntax for symbols. These do not
work in Guile 2.2.3:
scheme@(guile-user)> (read-enable 'r6rs-hex-escapes)
$1 = (square-brackets r6rs-hex-escapes keywords #f positions)
scheme@(guile-user)> (symbol->string '\x7c;
)
$2 = "\\x7c"
I expected this to return "|".
While fixing this, perhaps it would also be possible to add recognition
of #!r6rs to set the appropriate per-port read options, similarly to how
#!fold-case is recognized? It would make it much easier to load R6RS
code in Guile.
Best Regards,
--
Göran Weinholt
Debian developer
73 de SA6CJK
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2018-06-16 21:04 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-06-16 21:04 bug#31864: Hex-escaped r6rs symbols are not read correctly Göran Weinholt
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).