aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMaarten Vanraes <alien@mageia.org>2020-01-06 08:56:10 +0100
committerMaarten Vanraes <alien@mageia.org>2020-01-06 08:56:10 +0100
commit8c68cbba434467895e74cdf09e43176abd704c44 (patch)
tree285d4a3830267fb441c8914ab5f5c26ddc2330c1
parentf8b2f07e52c6dc13b3bfdbad29b2f3a45f2cda6c (diff)
downloadurpmi-proxy-8c68cbba434467895e74cdf09e43176abd704c44.tar
urpmi-proxy-8c68cbba434467895e74cdf09e43176abd704c44.tar.gz
urpmi-proxy-8c68cbba434467895e74cdf09e43176abd704c44.tar.bz2
urpmi-proxy-8c68cbba434467895e74cdf09e43176abd704c44.tar.xz
urpmi-proxy-8c68cbba434467895e74cdf09e43176abd704c44.zip
add binmode for STDOUT
-rwxr-xr-xurpmi-proxy.cgi1
1 files changed, 1 insertions, 0 deletions
diff --git a/urpmi-proxy.cgi b/urpmi-proxy.cgi
index f7174d8..fa7ccca 100755
--- a/urpmi-proxy.cgi
+++ b/urpmi-proxy.cgi
@@ -487,6 +487,7 @@ sub write_function {
($sec, $usec) = gettimeofday;
print STDERR "[$sec,$usec]: write: print STDOUT\n" if $debug;
# output
+ binmode STDOUT;
print $ptr;
($sec, $usec) = gettimeofday;
print STDERR "[$sec,$usec]: write: return\n" if $debug;