From add203540132a10018346c0765dd437cf4ee8371 Mon Sep 17 00:00:00 2001 From: Moritz Bunkus Date: Mon, 31 Jan 2011 13:21:09 +0100 Subject: [PATCH] =?utf8?q?Tempor=C3=A4rdateien=20im=20Bin=C3=A4rmodus=20?= =?utf8?q?=C3=B6ffnen?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Andernfalls werden ODTs und PDFs unter Windows beim Herunterladen verstümmelt. --- SL/Form.pm | 1 + 1 file changed, 1 insertion(+) diff --git a/SL/Form.pm b/SL/Form.pm index 8532c656f..81d6dc41b 100644 --- a/SL/Form.pm +++ b/SL/Form.pm @@ -1323,6 +1323,7 @@ sub parse_template { my $numbytes = (-s $self->{tmpfile}); open(IN, $self->{tmpfile}) or $self->error($self->cleanup . "$self->{tmpfile} : $!"); + binmode IN; $self->{copies} = 1 unless $self->{media} eq 'printer'; -- 2.20.1