summaryrefslogtreecommitdiff
path: root/test/lisp/emacs-lisp
diff options
context:
space:
mode:
authorEli Zaretskii <eliz@gnu.org>2019-11-23 11:27:43 +0200
committerEli Zaretskii <eliz@gnu.org>2019-11-23 11:27:43 +0200
commitc26556bd18f8ca1e891bd1750c9f95b21ea457b0 (patch)
tree6d13489bbc75c0b0eef4d38b8df9ee290cf7e5ef /test/lisp/emacs-lisp
parent6d4d00c63417e3479e978a373f252b9f2709ce39 (diff)
downloademacs-c26556bd18f8ca1e891bd1750c9f95b21ea457b0.tar.gz
emacs-c26556bd18f8ca1e891bd1750c9f95b21ea457b0.tar.bz2
emacs-c26556bd18f8ca1e891bd1750c9f95b21ea457b0.zip
Fix and speed up en/decoding of UTF-8 strings
* src/coding.c (get_char_bytes, encode_string_utf_8) (decode_string_utf_8): Fix commentary. (encode_string_utf_8): Return the original ASCII string only if NOCOPY is non-zero. (decode_string_utf_8): Accept 2 additional arguments STR and STR_LEN, which allow to pass the input text as a C string. (make_string_from_utf8): Delegate the job to decode_string_utf_8. * src/coding.h: Update the prototype of decode_string_utf_8. * src/json.c (json_encode): Call encode_string_utf_8.
Diffstat (limited to 'test/lisp/emacs-lisp')
0 files changed, 0 insertions, 0 deletions