From 714d0b9d9fca247d834cafca5faf07f45291abca Mon Sep 17 00:00:00 2001 From: Andy Wingo Date: Fri, 27 Sep 2019 14:06:53 +0200 Subject: [PATCH] Better R6RS compatibility * module/ice-9/boot-9.scm (install-r6rs!): Also enable `hungry-eol-escapes'. * doc/ref/r6rs.texi (R6RS Incompatibilities): Document lack of unicode escapes in symbols. --- doc/ref/r6rs.texi | 5 +++++ module/ice-9/boot-9.scm | 3 ++- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/doc/ref/r6rs.texi b/doc/ref/r6rs.texi index 9d326ff09..5c1c1b18f 100644 --- a/doc/ref/r6rs.texi +++ b/doc/ref/r6rs.texi @@ -44,6 +44,11 @@ case for R6RS treatment of escaped newlines in strings. R6RS behavior can be turned on via a reader option. @xref{String Syntax}, for more information. +@item +Guile does not yet support Unicode escapes in symbols, such as +@code{H\x65;llo} (the same as @code{Hello}), or @code(\x3BB;) (the same +as @code{λ}). + @item A @code{set!} to a variable transformer may only expand to an expression, not a definition---even if the original @code{set!} diff --git a/module/ice-9/boot-9.scm b/module/ice-9/boot-9.scm index fd4e19c00..adabbbbd6 100644 --- a/module/ice-9/boot-9.scm +++ b/module/ice-9/boot-9.scm @@ -4078,7 +4078,8 @@ R6RS. @xref{R6RS Incompatibilities} in the manual." (set! %load-extensions (cons* ".guile.sls" ".sls" (delete ".guile.sls" (delete ".sls" %load-extensions)))) - (read-enable 'r6rs-hex-escapes)) + (read-enable 'r6rs-hex-escapes) + (read-enable 'hungry-eol-escapes))