Fixed CR issue with Win32 version on MSYS.
authorGuenter Knauf <lists@gknw.net>
Fri, 20 Jul 2012 15:22:10 +0000 (17:22 +0200)
committerGuenter Knauf <lists@gknw.net>
Fri, 20 Jul 2012 15:22:10 +0000 (17:22 +0200)
Previous fix didnt work on Linux ...

tests/libtest/test1013.pl

index 2f67717..15e1214 100755 (executable)
@@ -14,10 +14,11 @@ my $curl_protocols="";
 open(CURL, "$ARGV[1]") || die "Can't get curl $what list\n";
 while( <CURL> )
 {
-    $curl_protocols = lc($_ =~ s/\r//) if ( /$what:/i );
+    $curl_protocols = lc($_) if ( /$what:/i );
 }
 close CURL;
 
+$curl_protocols =~ s/\r//;
 $curl_protocols =~ /\w+: (.*)$/;
 @curl = split / /,$1;