diff options
author | Mattias EngdegÄrd <mattiase@acm.org> | 2024-04-02 18:58:09 +0200 |
---|---|---|
committer | Mattias EngdegÄrd <mattiase@acm.org> | 2024-04-02 19:10:00 +0200 |
commit | 617debf67392946b4b42fdf364c69da6f094a840 (patch) | |
tree | 5d65b382c66e8ddbe25bf24e1cf1538e4f533d34 /lisp/emacs-lisp/re-builder.el | |
parent | 0670032c0dc03c0df6e11b5411b8d10fc61a7d41 (diff) | |
download | emacs-617debf67392946b4b42fdf364c69da6f094a840.tar.gz emacs-617debf67392946b4b42fdf364c69da6f094a840.tar.bz2 emacs-617debf67392946b4b42fdf364c69da6f094a840.zip |
Fix json-insert unibyte buffer bug (bug#70007)
Previously, a unibyte target buffer could be put in an incorrect state
if json-insert was used to insert non-ASCII characters.
* src/json.c (Fjson_insert): Simplify. Don't attempt to decode the data
being inserted: it is guaranteed to be correct UTF-8 and is correct for
both unibyte and multibyte buffers.
* test/src/json-tests.el (json-serialize/roundtrip)
(json-serialize/roundtrip-scalars): Extend tests.
Diffstat (limited to 'lisp/emacs-lisp/re-builder.el')
0 files changed, 0 insertions, 0 deletions