Bug #54368 MTR does not recognize carriage return in --defaults-file
Remove any leftover trailing ^M from lines read in
This commit is contained in:
parent
d5f2972628
commit
145b1fe1f9
@ -188,6 +188,8 @@ sub new {
|
|||||||
|
|
||||||
while ( my $line= <$F> ) {
|
while ( my $line= <$F> ) {
|
||||||
chomp($line);
|
chomp($line);
|
||||||
|
# Remove any trailing CR from Windows edited files
|
||||||
|
$line=~ s/\cM$//;
|
||||||
|
|
||||||
# [group]
|
# [group]
|
||||||
if ( $line =~ /^\[(.*)\]/ ) {
|
if ( $line =~ /^\[(.*)\]/ ) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user