Commit a46793d3 authored by Christophe Rhodes's avatar Christophe Rhodes
Browse files

give us a chance with utf-8

Calculate the length of the output to emacs using nchar(type="bytes")

This makes help files sort-of work again
parent 24c95f11
......@@ -62,7 +62,7 @@ dispatch <- function(slimeConnection, event, sldbState=NULL) {
sendToEmacs <- function(slimeConnection, obj) {
io <- slimeConnection$io
payload <- writeSexpToString(obj)
writeChar(sprintf("%06x", nchar(payload)), io, eos=NULL)
writeChar(sprintf("%06x", nchar(payload, type="bytes")), io, eos=NULL)
writeChar(payload, io, eos=NULL)
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment