GNU bug report logs -
#61726
[PATCH] Eglot: Support positionEncoding capability
Previous Next
Reported by: Augusto Stoffel <arstoffel <at> gmail.com>
Date: Thu, 23 Feb 2023 08:06:01 UTC
Severity: normal
Tags: patch
Done: João Távora <joaotavora <at> gmail.com>
Bug is archived. No further changes may be made.
Full log
View this message in rfc822 format
On Fri, 24 Feb 2023 at 17:23, Eli Zaretskii wrote:
> It is not more expensive. The underlying functions we call are
> already capable of producing replacements instead of characters that
> cannot be encoded in UTF-8. We just don't use those capabilities in
> json.c because some of us had strong feelings about signaling an error
> in these situations.
I didn't track down byte-to-position and position-bytes in the C code.
So you are saying they're as expensive as encode-coding-string? If (and
only if) this is the case, then I take back my point :-).
> What if json-serialize stops signaling an error at some point, and
> instead uses the replacement mechanism I mentioned above?
In the other message I explained why I think this is exactly what we
should _not_ do.
This bug report was last modified 2 years and 137 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.