--- colorgcc-1.4.5/colorgcc.pl.pix 2019-01-21 18:15:21.484334871 -0500 +++ colorgcc-1.4.5/colorgcc.pl 2019-01-21 18:13:58.450597199 -0500 @@ -365,6 +365,9 @@ if (! -t STDOUT || $nocolor{$terminal} | # code and use that as our return code. my $compiler_pid = open3('<&STDIN', \*GCCOUT, \*GCCOUT, $compiler, @ARGV); +my $warning = 'warning: '; +my $warning_translated = `gettext gcc "$warning"` || $warning; + # Colorize the output from the compiler. while(<GCCOUT>) { @@ -385,7 +388,7 @@ while(<GCCOUT>) print($colors{"noteNumberColor"}, "$field2:", color("reset")); srcscan($field3, $colors{"noteMessageColor"}); } - elsif ($field3 =~ m/\s+warning:.*/) + elsif ($field3 =~ m/\s+($warning_translated|$warning).*/) { # Warning print($colors{"warningFileNameColor"}, "$field1:", color("reset"));