1
0
mirror of https://github.com/MariaDB/server.git synced 2025-07-29 05:21:33 +03:00

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:
Bjorn Munch
2010-06-14 15:34:43 +02:00
parent b7c8385e05
commit 3a320f95de

View File

@ -188,6 +188,8 @@ sub new {
while ( my $line= <$F> ) {
chomp($line);
# Remove any trailing CR from Windows edited files
$line=~ s/\cM$//;
# [group]
if ( $line =~ /^\[(.*)\]/ ) {