Package: colorgcc
Version: 1.3.2.0-8
Severity: normal
Tags: patch
On my (utf8) system, colorgcc gives output like this:
> CBioPlot.cpp:191: warning: unused parameter †samplesâ€
> CBioPlot.cpp:191: warning: unused parameter †numâ€
> CBioPlot.cpp:191: warning: unused parameter †samplecountâ€
it breaks the charset somehow, because perl tries to be smart and
treats its input as latin1 for some reason. The following patch fixes
it:
--- colorgcc.old 2009-02-20 14:39:26.000000000 +0100
+++ colorgcc 2009-02-20 14:39:30.000000000 +0100
@@ -206,6 +206,8 @@
# Keep the pid of the compiler process so we can get its return
# code and use that as our return code.
$compiler_pid = open3('<&STDIN', \*GCCOUT, \*GCCOUT, $compiler, @ARGV);
+binmode(\*GCCOUT,":bytes");
+binmode(\*ZTDOUT,":bytes");
# Colorize the output from the compiler.
while(<GCCOUT>)
-- System Information:
Debian Release: 5.0
APT prefers unstable
APT policy: (500, 'unstable'), (500, 'testing'), (1, 'experimental')
Architecture: amd64 (x86_64)
Kernel: Linux 2.6.27.8 (SMP w/2 CPU cores; PREEMPT)
Locale: LANG=en_GB.UTF-8, LC_CTYPE=en_GB.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Versions of packages colorgcc depends on:
ii perl 5.10.0-19 Larry Wall's Practical Extraction
ii perl-modules 5.10.0-19 Core Perl modules
colorgcc recommends no packages.
colorgcc suggests no packages.
-- no debconf information
--
To UNSUBSCRIBE, email to [email protected]
with a subject of "unsubscribe". Trouble? Contact [email protected]