Skip to content

Abort when unicode is used #14

leoliu opened this Issue Jan 4, 2012 · 3 comments

3 participants

leoliu commented Jan 4, 2012

Try entering the following in slime-repl:


after that all communication between slime and swank is broken. The same thing happens when the return value from swank contains unicode. For example, I was trying the example:

$(".sitetable a.title").map(function(n) { return (n + 1) + ". " + $(this).text(); }).get().join("\n")

and today contains this heading (note the two unicode chars at the end):

I just explained memes to my uncle. This was his first one ಠ_ಠ (

The error looks like this:

swank-js member
jonnay commented Feb 9, 2012

I don't get the error, but I explicity set all buffers to utf-8. What is the value of your buffer-file-coding-system? ("C-h v buffer-file-coding-system") What happens when you try to set it to UTF-8, same problem?

leoliu commented Feb 18, 2012

I just tried (prefer-coding-system 'utf-8) in a newly-started emacs and re-did the experiment. The problem persists.

@ivan4th ivan4th added a commit that referenced this issue Feb 22, 2012
@ivan4th ivan4th Fixed UTF-8 handling (#14).
Some time ago SLIME wire protocol was changed to specify
number of bytes in the header, and here we were still counting
chars which was leading to protocol errors.
swank-js member
ivan4th commented Feb 22, 2012

There was indeed a compatibility problem with recent & semi-recent SLIME versions. After upgrading to latest SLIME and fixing connection-info stuff, I've noticed that problem, too. Fixed it now, just upgrade to latest SLIME and have fun.

@ivan4th ivan4th closed this Feb 22, 2012
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.