From 240e662189985696b3dda3ce442caf30da0e21c3 Mon Sep 17 00:00:00 2001 From: Christophe Rhodes Date: Fri, 9 Dec 2011 10:44:36 +0000 Subject: [PATCH] pass an :encoding stanza in the connection information MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Allows slime-repl to start again. I've said "utf-8-unix" but that is almost certainly a lie; I have no real idea how R handles encodings of text. Simply passing in "ë" to the R slime repl breaks things without too much effort. --- swank.R | 1 + 1 file changed, 1 insertion(+) diff --git a/swank.R b/swank.R index c50114a..24393e6 100644 --- a/swank.R +++ b/swank.R @@ -287,6 +287,7 @@ printToString <- function(val) { `swank:connection-info` <- function (slimeConnection, sldbState) { list(quote(`:pid`), Sys.getpid(), quote(`:package`), list(quote(`:name`), "R", quote(`:prompt`), "R> "), + quote(`:encoding`), list(quote(`:coding-systems`), list("utf-8-unix")), quote(`:lisp-implementation`), list(quote(`:type`), "R", quote(`:name`), "R", quote(`:version`), paste(R.version$major, R.version$minor, sep="."))) -- 2.39.5