From: Christophe Rhodes Date: Fri, 9 Dec 2011 10:44:36 +0000 (+0000) Subject: pass an :encoding stanza in the connection information X-Git-Url: http://christophe.rhodes.io/gitweb/?p=swankr.git;a=commitdiff_plain;h=240e662189985696b3dda3ce442caf30da0e21c3 pass an :encoding stanza in the connection information 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. --- 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=".")))