develooper Front page | perl.perl5.porters | Postings from October 2000

[PATCH: perl@7483] CRLF fix for cgi-function.t tests

Thread Previous | Thread Next
From:
Peter Prymmer
Date:
October 30, 2000 17:44
Subject:
[PATCH: perl@7483] CRLF fix for cgi-function.t tests
Message ID:
Pine.OSF.4.10.10010301745120.69159-100000@aspara.forte.com

One file affected:

   t/lib/cgi-function.t

Here it is:

--- t/lib/cgi-function.t.orig	Mon Oct 30 17:30:17 2000
+++ t/lib/cgi-function.t	Mon Oct 30 17:29:47 2000
@@ -36,6 +36,11 @@
 
 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';
End of Patch.

Peter Prymmer




Thread Previous | Thread Next


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About