scel/el
Mario Lang 7285fb3358 Fix decoding of evaluation results to support multibyte characters
Symptom: (sclang-eval-sync "\"ö\"") evaluates to "ö"
After this patch: (sclang-eval-sync "\"ö\"") => "ö"

This was tricky to figure out, so here is a bit of background.
scel uses a so-called command FIFO to send (amongst other things) evaluation
results to Emacs.  This FIFO uses a pascal-string (32bit string length
followed by character data) to send Lisp to Emacs.  The command process
coding system is already set to 'no-conversion on the Emacs side
to avoid crippling the int32 at the beginning of every string.
However, the read-from-string call in sclang-command-process-filter
implicitly converts the unibyte string received from the process to
a multibyte string, without doing proper conversion.
The right function to use here is string-as-multibyte, which does
the correct conversion.
2019-12-17 08:32:05 +01:00
..
CMakeLists.txt install *.el files irrespective of byte compilation option 2018-03-30 17:43:21 +05:30
sclang-browser.el Update address of Free Software Foundation (debian source-checking tools produce warnings about this). 2009-04-20 08:38:27 +00:00
sclang-dev.el scel: bytecompilation fix 2011-07-23 16:25:46 +02:00
sclang-document.el Update address of Free Software Foundation (debian source-checking tools produce warnings about this). 2009-04-20 08:38:27 +00:00
sclang-help.el change instances of flet to cl-flet as flet is obsolete 2018-07-28 20:01:58 +05:30
sclang-interp.el Fix decoding of evaluation results to support multibyte characters 2019-12-17 08:32:05 +01:00
sclang-keys.el scel: bytecompile fix, correct use of defvar and defconst and add requirements 2011-07-22 20:35:00 +02:00
sclang-language.el change instances of flet to cl-flet as flet is obsolete 2018-07-28 20:01:58 +05:30
sclang-menu.el Update address of Free Software Foundation (debian source-checking tools produce warnings about this). 2009-04-20 08:38:27 +00:00
sclang-minor-mode.el scel: one more bytecode compilation fix 2011-07-23 16:27:17 +02:00
sclang-mode.el Prevent Emacs fontification failure w/ lots of classes - Fixes #248 2016-11-21 17:13:01 -06:00
sclang-server.el change instances of flet to cl-flet as flet is obsolete 2018-07-28 20:01:58 +05:30
sclang-util.el Update address of Free Software Foundation (debian source-checking tools produce warnings about this). 2009-04-20 08:38:27 +00:00
sclang-vars.el.in Update my email address 2019-12-12 10:37:11 +01:00
sclang-widgets.el Update my email address 2019-12-12 10:37:11 +01:00
sclang.el Update address of Free Software Foundation (debian source-checking tools produce warnings about this). 2009-04-20 08:38:27 +00:00