mirror of
https://github.com/postgres/postgres.git
synced 2025-07-03 20:02:46 +03:00
Tighten up Windows CRLF conversion in our TAP test scripts.
Back-patch commits91bdf499b
andffb4cee43
, so that all branches agree on when and how to do Windows CRLF conversion. This should close the referenced thread. Thanks to Andrew Dunstan for discussion/review. Discussion: https://postgr.es/m/412ae8da-76bb-640f-039a-f3513499e53d@gmx.net
This commit is contained in:
@ -216,7 +216,7 @@ sub slurp_file
|
||||
or die "could not read \"$filename\": $!";
|
||||
my $contents = <$in>;
|
||||
close $in;
|
||||
$contents =~ s/\r//g if $Config{osname} eq 'msys';
|
||||
$contents =~ s/\r\n/\n/g if $Config{osname} eq 'msys';
|
||||
return $contents;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user