]> granicus.if.org Git - curl/commitdiff
strip \r only on non-win32 platforms (wine on Linux).
authorGunter Knauf <gk@gknw.de>
Thu, 21 May 2009 14:14:57 +0000 (14:14 +0000)
committerGunter Knauf <gk@gknw.de>
Thu, 21 May 2009 14:14:57 +0000 (14:14 +0000)
tests/testcurl.pl

index 78d3abded10051b6d00ec9dc5f0fff153e2e4cb7..d61807f18905c1e9ac403c53310540c2ca802226 100755 (executable)
@@ -664,7 +664,8 @@ if (!$crosscompile || (($extvercmd ne '') && (-x $extvercmd))) {
   my $cmd = ($extvercmd ne '' ? $extvercmd.' ' : '')."./src/curl${binext} --version|";
   open(F, $cmd);
   while(<F>) {
-    s/\r//;
+    # strip CR from output on non-win32 platforms (wine on Linux)
+    s/\r// if ($^O ne 'MSWin32');
     print;
   }
   close(F);