Open mikepurvis opened 4 years ago
When trying to reproduce it…
# echo 'int main(int argc, char ** argv) { return argc < (unsigned)argc; }' > main.c
# gcc -Wextra -fdiagnostics-color=always main.c |& ansi2html > gcc.htm
# gcc -dumpversion
11.2.1
# ansi2html --version
ansi2html 1.7.1.dev1 # i.e. Git master
…what I see in the browser is this:
Which looks sane. So I'll need help with reproducing.
PS: Here's what I get for your very example pasted into input.txt
. Note the sed
call to repair the ANSI on the fly:
# sed $'s,\^\[,\x1b,g' input.txt | ansi2html > gcc.htm
Then in Chromium:
Not totally sure what's going on here, but this is diagnostic output from GCC 9:
Which is rendered by ansi2html into:
Anyone know what those extra
â
sequences are, and if they can be filtered out somehow?