From: Peter Prymmer Date: Mon, 30 Oct 2000 17:46:33 +0000 (-0800) Subject: CRLF fix for cgi-function.t tests X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=fc051c1ec091dfa3a3a0542ac63bc218189d0f84;p=p5sagit%2Fp5-mst-13.2.git CRLF fix for cgi-function.t tests Message-ID: p4raw-id: //depot/perl@7496 --- diff --git a/t/lib/cgi-function.t b/t/lib/cgi-function.t index 653c4e5..3b9722e 100755 --- a/t/lib/cgi-function.t +++ b/t/lib/cgi-function.t @@ -36,6 +36,11 @@ my $CRLF = "\015\012"; if ($^O eq 'VMS') { $CRLF = "\n"; } +# Web servers on EBCDIC hosts are typically set up to do an EBCDIC -> ASCII +# translation hence CRLF is used as \r\n within CGI.pm on such machines. + +if (ord("\t") != 9) { $CRLF = "\r\n"; } + # Set up a CGI environment $ENV{REQUEST_METHOD}='GET'; $ENV{QUERY_STRING} ='game=chess&game=checkers&weather=dull';