]> git.eshelyaron.com Git - emacs.git/commit
Use decode_string_utf_8 in emacs-module.c.
authorPhilipp Stephani <phst@google.com>
Sun, 12 Jan 2020 23:07:07 +0000 (00:07 +0100)
committerPhilipp Stephani <phst@google.com>
Sun, 12 Jan 2020 23:08:32 +0000 (00:08 +0100)
commit3252f3149673bbd6919d5d9a5a672e2f3730741d
treed3f77ec7ecf0595590f1f1f304fd6ea33ab9a1b7
parent41d9d51cf5ac5b76c09802388e1691cf489d9d9d
Use decode_string_utf_8 in emacs-module.c.

Now that decode_string_utf_8 is available, we can use it to signal
errors on invalid input.

* src/coding.c (syms_of_coding): Move Qutf_8_string_p from json.c
since it’s now used outside json.c.

* src/emacs-module.c (module_decode_utf_8): New helper function.
(module_make_function, module_copy_string_contents): Use it.
src/coding.c
src/emacs-module.c
src/json.c