diff options
| author | Philipp Stephani | 2016-10-24 21:54:51 +0200 |
|---|---|---|
| committer | Philipp Stephani | 2017-01-01 13:24:14 +0100 |
| commit | 93be35e038bbb19e8d64d3c1f9d1be76a9083d09 (patch) | |
| tree | 7a9074fa83d51aa8136f57be267c83016c4f3978 /src/kqueue.c | |
| parent | baa370f255d2f9d3f662fac0de98eaadd3242aa6 (diff) | |
| download | emacs-93be35e038bbb19e8d64d3c1f9d1be76a9083d09.tar.gz emacs-93be35e038bbb19e8d64d3c1f9d1be76a9083d09.zip | |
Fix encoding of JSON surrogate pairs
JSON requires that such pairs be treated as UTF-16 surrogate pairs, not
individual code points; cf. Bug #24784.
* lisp/json.el (json-read-escaped-char): Fix decoding of surrogate
pairs.
(json--decode-utf-16-surrogates): New defun.
* test/lisp/json-tests.el (test-json-read-string): Add test for
surrogate pairs.
Diffstat (limited to 'src/kqueue.c')
0 files changed, 0 insertions, 0 deletions