Merge pull request #16 from mlang/multibyte

Fix decoding of evaluation results to support multibyte characters
This commit is contained in:
Brian Heim 2019-12-22 16:01:50 -06:00 committed by GitHub
commit 92d549770b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -444,7 +444,8 @@ Change this if \"cat\" has a non-standard name or location."
(while (and (> (length string) 3)
(>= (length string)
(setq end (+ 4 (sclang-string-to-int32 string)))))
(sclang-handle-command-result (car (read-from-string string 4 end)))
(sclang-handle-command-result
(read (string-as-multibyte (substring string 4 end))))
(setq string (substring string end))))
(setq sclang-command-process-previous string))