develooper Front page | perl.perl5.porters | Postings from February 2003

[perl@18752] warnings from CGI tests under cygwin

Thread Next
From:
sthoenna
Date:
February 19, 2003 14:00
Subject:
[perl@18752] warnings from CGI tests under cygwin
Message ID:
jk/U+gzkg2DE092yn@efn.org
Several of the CGI tests are spewing warnings:

lib/CGI/t/form.......................Use of uninitialized value in concatenation (.) or string at ../lib/CGI.pm line 3459.
Use of uninitialized value in concatenation (.) or string at ../lib/CGI.pm line 3459.
Use of uninitialized value in concatenation (.) or string at ../lib/CGI.pm line 3459.
Use of uninitialized value in concatenation (.) or string at ../lib/CGI.pm line 3459.
Use of uninitialized value in concatenation (.) or string at ../lib/CGI.pm line 3459.
Use of uninitialized value in concatenation (.) or string at ../lib/CGI.pm line 3459.
Use of uninitialized value in concatenation (.) or string at ../lib/CGI.pm line 3459.
Use of uninitialized value in concatenation (.) or string at ../lib/CGI.pm line 3459.
Use of uninitialized value in concatenation (.) or string at ../lib/CGI.pm line 3459.
Use of uninitialized value in concatenation (.) or string at ../lib/CGI.pm line 3459.
Use of uninitialized value in concatenation (.) or string at ../lib/CGI.pm line 3459.
Use of uninitialized value in concatenation (.) or string at ../lib/CGI.pm line 3459.
ok

Sometime between CGI version 2.81 and 2.89, $CGI::OS changed to 'CYGWIN'
instead of 'UNIX', breaking the code setting $CGI::SL.

Not sure where to put a test for this; perhaps CGI.pm should just croak if
$SL is undefined after the assignment.

--- perl/lib/CGI.pm.orig	Thu Jan 16 13:25:44 2003
+++ perl/lib/CGI.pm	Wed Feb 19 13:35:50 2003
@@ -149,7 +149,7 @@
 # The path separator is a slash, backslash or semicolon, depending
 # on the paltform.
 $SL = {
-       UNIX=>'/', OS2=>'\\', EPOC=>'/',
+       UNIX=>'/', OS2=>'\\', EPOC=>'/', CYGWIN=>'/',
        WINDOWS=>'\\', DOS=>'\\', MACINTOSH=>':', VMS=>'/'
     }->{$OS};
 
End of Patch.

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