Merge pull request #16 from mlang/multibyte
Fix decoding of evaluation results to support multibyte characters
This commit is contained in:
commit
92d549770b
1 changed files with 2 additions and 1 deletions
|
@ -444,7 +444,8 @@ Change this if \"cat\" has a non-standard name or location."
|
||||||
(while (and (> (length string) 3)
|
(while (and (> (length string) 3)
|
||||||
(>= (length string)
|
(>= (length string)
|
||||||
(setq end (+ 4 (sclang-string-to-int32 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 string (substring string end))))
|
||||||
(setq sclang-command-process-previous string))
|
(setq sclang-command-process-previous string))
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue