Subject: bug#79361: minor jsonrpc optimisation suggestions

From: Eli Zaretskii <[email-masked]>
Date: Fri, 05 Sep 2025 09:39:02 +0300

> From: Mattias Engdegård <[email-masked]>
> Date: Thu, 4 Sep 2025 19:29:01 +0200
> Cc: Eli Zaretskii <[email-masked]>,
>  [email-masked],
>  Daniel Pettersson <[email-masked]>
> 
> Here is a proper patch. Tested with a few servers (clangd, ocaml-lsp-server), and everything seems to work including Unicode in identifiers and doc strings.

Thanks.

Can this change affect programs using jsonrpc in any way?  For
example, do we have hooks or user-defined functions that can be called
with this buffer the current buffer?  If so, this change should be
called out in NEWS, because now the buffer is unibyte and the text in
it is undecoded.