From: jouni%heikniemi.net <> Date: Thu, 4 Jul 2002 16:12:33 +0000 (+0000) Subject: Bug 62000: File attachments don't work on Windows. Note: only the code from the patch... X-Git-Tag: bugzilla-2.17.1~283 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=4bc6d3653390bc268789c91803b1953accff520a;p=thirdparty%2Fbugzilla.git Bug 62000: File attachments don't work on Windows. Note: only the code from the patch was checked in, the documentation issue was split to bug 155743. 2xr=bbaetz --- diff --git a/attachment.cgi b/attachment.cgi index f45b4efd39..a755d3b263 100755 --- a/attachment.cgi +++ b/attachment.cgi @@ -36,6 +36,12 @@ use vars qw( $vars ); +# Win32 specific hack to avoid a hang when creating/showing an attachment +if ($^O eq 'MSWin32') { + binmode(STDIN); + binmode(STDOUT); +} + # Include the Bugzilla CGI and general utility library. require "CGI.pl";