GNU bug report logs -
#72597
30.0.60; Eglot: MarkedString with embedded Carriage Return
Previous Next
Full log
View this message in rfc822 format
> From: Daniel Pettersson <daniel <at> dpettersson.net>
> Cc: Eli Zaretskii <eliz <at> gnu.org>, Troy Brown <brownts <at> troybrown.dev>,
> felician.nemeth <at> gmail.com, 72597 <at> debbugs.gnu.org
> Date: Thu, 05 Sep 2024 23:32:08 +0200
>
> > Anyway, if the solution is to be performed at this lower
> > level (which I think it should), then Daniel Petterson
> > jsonrpc.el maintainer should be added.
>
> I might be missing something, but jsonrpc should not in my mind
> convert/format/encode any json data. Any assumptions on line endings
> can only be made on header and content separators, not on the json
> payload itself.
That depends on the reason why the CR character appeared there in the
first place. Are they required for the strings in questions, or are
they simply an artifact of how the server marshaled JSON data on the
wire? In the latter case, the CR characters are the result of
Windows-style text writing, which adds a CR to each newline, and
therefore removing that CR should indeed happen where Emacs decodes
the EOLs of the incoming stuff.
This bug report was last modified 281 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.