strip \r only on non-win32 platforms (wine on Linux).
This commit is contained in:
parent
b8b6521659
commit
5e2b5edde5
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user