]> git.ipfire.org Git - thirdparty/gcc.git/commit
pretty-print: Don't translate escape sequences to windows console API
authorPeter Damianov <peter0x44@disroot.org>
Mon, 3 Jun 2024 17:07:10 +0000 (10:07 -0700)
committerJonathan Yong <10walls@gmail.com>
Sun, 16 Jun 2024 01:40:26 +0000 (01:40 +0000)
commitbc630d613db94eb50687a009ae6b45098ab02db5
treec997a3530455f2648becb991dc001a958f1ea16d
parent5c662a3a5724b75ceb06496d9c64137d59c89d39
pretty-print: Don't translate escape sequences to windows console API

Modern versions of windows (after windows 10 v1511) support VT100 escape
sequences, so translation for them is not necessary. The translation also
mangles embedded warning documentation links.

gcc/ChangeLog:
* pretty-print.cc (mingw_ansi_fputs): Don't translate escape sequences if
the console has ENABLE_VIRTUAL_TERMINAL_PROCESSING.

Signed-off-by: Peter Damianov <peter0x44@disroot.org>
gcc/pretty-print.cc