unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
* JSON parsing of Extended ASCII
@ 2022-05-10 17:18 Felix Weilbach
  2022-05-10 17:30 ` Eli Zaretskii
  2022-05-10 17:50 ` Stefan Monnier
  0 siblings, 2 replies; 3+ messages in thread
From: Felix Weilbach @ 2022-05-10 17:18 UTC (permalink / raw)
  To: emacs-devel

Hello,


I'm working on source code that has Extended ASCII characters inside 
comments in it. This is unfortunate because LSP-mode crashes if it 
encounters an invalid UTF-8 string. I know this mailing list is not 
about LSP-mode, but I could track down the issue to the function 
json_stringn() that gets called in lisp_to_json() inside json.c. Visual 
Studio Code can cope with these files fine and their LSP implementation 
has no problem with these files. Therefore I think Emacs should handle 
this situation as well. I want to find a solution to this problem and 
implement it. What do you think about this problem? Have you ideas for a 
solution? Should a potential solution be implemented inside Emacs or 
LSP-mode?

I think there could be implemented a function inside Emacs that tries to 
convert Extended ASCII to UTF-8 and then encodes it to JSON.


Kind regards

Felix Weilbach




^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2022-05-10 17:50 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-05-10 17:18 JSON parsing of Extended ASCII Felix Weilbach
2022-05-10 17:30 ` Eli Zaretskii
2022-05-10 17:50 ` Stefan Monnier

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).