From 4bc6d3653390bc268789c91803b1953accff520a Mon Sep 17 00:00:00 2001 From: "jouni%heikniemi.net" <> Date: Thu, 4 Jul 2002 16:12:33 +0000 Subject: 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 --- attachment.cgi | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'attachment.cgi') diff --git a/attachment.cgi b/attachment.cgi index f45b4efd3..a755d3b26 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"; -- cgit v1.2.3-24-g4f1b