mirror of
https://github.com/curl/curl.git
synced 2026-04-25 08:42:11 +03:00
strip \r only on non-win32 platforms (wine on Linux).
This commit is contained in:
parent
b8b6521659
commit
5e2b5edde5
1 changed files with 2 additions and 1 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue