Re: Broken source view with Pygments and non-UTF-8 encoded source

Andrew Burgess via Gdb <[email protected]>
Newsgroups gmane.comp.gdb.devel
Message-ID <[email protected]>
* Andrew Burgess via Gdb <[email protected]> [2021-11-26 11:16:21 +0000]:

> * Simon Sobisch via Gdb <[email protected]> [2021-11-25 20:28:18 +0100]:
> 
> > I _really_ like the Pygments option, but it sadly doesn't work when the
> > source code as invalid UTF8 data in it.
> > As soon as this is the case "list" does not show a nice highlighted code any
> > more but instead Python Exception is raised (UnicodeDecodeError) and then
> > non-colored lines are shown.
> > 
> > This is especially bad when you "step" through the code because you get the
> > python exception for every line.
> 
> Could you post here, or provide a link to, an example source file that
> triggers the error please.

Never mind, I figured it out.  I have a fix which I'll post to
gdb-patches shortly.

Thanks,
Andrew
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.