GNU bug report logs - #31864
Hex-escaped r6rs symbols are not read correctly

Previous Next

Package: guile;

Reported by: Göran Weinholt <goran <at> weinholt.se>

Date: Sat, 16 Jun 2018 21:15:02 UTC

Severity: normal

To reply to this bug, email your comments to 31864 AT debbugs.gnu.org.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to bug-guile <at> gnu.org:
bug#31864; Package guile. (Sat, 16 Jun 2018 21:15:02 GMT) Full text and rfc822 format available.

Acknowledgement sent to Göran Weinholt <goran <at> weinholt.se>:
New bug report received and forwarded. Copy sent to bug-guile <at> gnu.org. (Sat, 16 Jun 2018 21:15:02 GMT) Full text and rfc822 format available.

Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: Göran Weinholt <goran <at> weinholt.se>
To: bug-guile <at> gnu.org
Subject: Hex-escaped r6rs symbols are not read correctly
Date: Sat, 16 Jun 2018 23:04:39 +0200
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




This bug report was last modified 6 years and 363 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.