Package: source-highlight
Version: 2.4-5.2
Followup-For: Bug #476863
The attached patch fixes the broken default as well as adds "-" along with
"STDOUT" as special filenames.
-- System Information:
Debian Release: lenny/sid
APT prefers unstable
APT policy: (500, 'unstable')
Architecture: amd64 (x86_64)
Kernel: Linux 2.6.24-1-amd64 (SMP w/2 CPU cores)
Locale: LANG=en_GB.ISO-8859-15, LC_CTYPE=da_DK.ISO-8859-15 (charmap=ISO-8859-15)
Shell: /bin/sh linked to /bin/bash
Versions of packages source-highlight depends on:
ii libboost-regex1.34.1 1.34.1-11 regular expression library for C++
ii libc6 2.7-10 GNU C Library: Shared libraries
ii libgcc1 1:4.3.0-3 GCC support library
ii libstdc++6 4.3.0-3 The GNU Standard C++ Library v3
source-highlight recommends no packages.
-- no debconf information
--- source-highlight-2.4/src/startapp.cc 2006-05-07 15:00:32.000000000
+0200
+++ source-highlight-2.4-fixed/src/startapp.cc 2008-04-19 19:06:03.529843322
+0200
@@ -181,9 +181,10 @@
if ( inputFileName.size() && ! is_cgi && args_info.output_given)
outputFileName = args_info.output_arg ;
- bool generate_to_stdout =
+ bool generate_to_stdout = (!args_info.output_arg ||
(args_info.output_arg &&
- strcmp (args_info.output_arg, "STDOUT") == 0);
+ (strcmp (args_info.output_arg, "STDOUT") == 0 ||
+ strcmp (args_info.output_arg, "-") == 0)));
if ( verbose )
setMessager( new DefaultMessages ) ;