From: Gunter Knauf Date: Thu, 21 May 2009 14:14:57 +0000 (+0000) Subject: strip \r only on non-win32 platforms (wine on Linux). X-Git-Tag: curl-7_19_6~232 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=5e2b5edde5e88e1f451f4a773f1ecf09d6bc0df0;p=curl strip \r only on non-win32 platforms (wine on Linux). --- diff --git a/tests/testcurl.pl b/tests/testcurl.pl index 78d3abded..d61807f18 100755 --- a/tests/testcurl.pl +++ b/tests/testcurl.pl @@ -664,7 +664,8 @@ if (!$crosscompile || (($extvercmd ne '') && (-x $extvercmd))) { my $cmd = ($extvercmd ne '' ? $extvercmd.' ' : '')."./src/curl${binext} --version|"; open(F, $cmd); while() { - s/\r//; + # strip CR from output on non-win32 platforms (wine on Linux) + s/\r// if ($^O ne 'MSWin32'); print; } close(F);