mirror of
https://github.com/moparisthebest/curl
synced 2025-03-11 07:39:50 -04:00
getpart.pm: Strip carriage returns to fix Windows support
This commit is contained in:
parent
18f0ab7bd3
commit
e51b23c925
@ -213,9 +213,10 @@ sub compareparts {
|
|||||||
# we cannot compare arrays index per index since with the base64 chunks,
|
# we cannot compare arrays index per index since with the base64 chunks,
|
||||||
# they may not be "evenly" distributed
|
# they may not be "evenly" distributed
|
||||||
|
|
||||||
# NOTE: this no longer strips off carriage returns from the arrays. Is that
|
if($^O eq "MSWin32" || $^O eq "msys") {
|
||||||
# really necessary? It ruins the testing of newlines. I believe it was once
|
$first =~ s/\r\n/\n/g;
|
||||||
# added to enable tests on win32.
|
$second =~ s/\r\n/\n/g;
|
||||||
|
}
|
||||||
|
|
||||||
if($first ne $second) {
|
if($first ne $second) {
|
||||||
return 1;
|
return 1;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user