From c25aba1254135a230971c1ed2a8140bde52b7b07 Mon Sep 17 00:00:00 2001 From: Marcel Raad Date: Sun, 16 Apr 2017 14:58:08 +0200 Subject: [PATCH] extern-scan.pl: strip trailing CR This makes test 1135 pass with CRLF checkouts. Ref: https://github.com/curl/curl/pull/1344#issuecomment-289243166 Closes https://github.com/curl/curl/pull/1422 --- tests/extern-scan.pl | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/tests/extern-scan.pl b/tests/extern-scan.pl index 7a5c29140..88594ed69 100755 --- a/tests/extern-scan.pl +++ b/tests/extern-scan.pl @@ -49,7 +49,9 @@ sub scanheader { open H, "<$f" || die; while() { if (/^(CURL_EXTERN.*)/) { - print "$1\n"; + my $decl = $1; + $decl =~ s/\r$//; + print "$decl\n"; } } close H;