Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 863fa43

Browse files
committed
Suppress another CR in program output
This one was exposed by a12c75a. Backpatch to release 11 where check_pg_config was introduced.
1 parent 5daf682 commit 863fa43

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/test/perl/TestLib.pm

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -560,6 +560,7 @@ sub check_pg_config
560560
\$stdout, '2>', \$stderr
561561
or die "could not execute pg_config";
562562
chomp($stdout);
563+
$stdout =~ s/\r$//;
563564

564565
open my $pg_config_h, '<', "$stdout/pg_config.h" or die "$!";
565566
my $match = (grep { /^$regexp/ } <$pg_config_h>);

0 commit comments

Comments
 (0)