From e652a0c2a5ada610aa6830fdb4b55eac2b764852 Mon Sep 17 00:00:00 2001 From: Moritz Bunkus Date: Tue, 28 Dec 2010 10:28:29 +0100 Subject: [PATCH] ZIP-Dateien raw auf STDOUT ausgeben --- bin/mozilla/datev.pl | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/bin/mozilla/datev.pl b/bin/mozilla/datev.pl index 4ada35f10..d35225204 100644 --- a/bin/mozilla/datev.pl +++ b/bin/mozilla/datev.pl @@ -421,11 +421,13 @@ sub download { chdir($cwd); open(IN, $tmp_name) || die("open $tmp_name"); - print("Content-Type: application/zip\n"); - print("Content-Disposition: attachment; filename=\"${zip_name}\"\n\n"); - while () { - print($_); - } + $::locale->with_raw_io(\*STDOUT, sub { + print("Content-Type: application/zip\n"); + print("Content-Disposition: attachment; filename=\"${zip_name}\"\n\n"); + while () { + print($_); + } + }); close(IN); unlink($tmp_name); -- 2.20.1