From 66b82fabaaec57b0d825aec1327603fd3a87d956 Mon Sep 17 00:00:00 2001 From: Mark Andrews Date: Fri, 12 Apr 2019 14:09:01 +1000 Subject: [PATCH] support files which have CR LF ending like those in win32utils (cherry picked from commit e76936fd85d2b05058f7de11ce1ca9e044b59c04) --- util/update_copyrights | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/util/update_copyrights b/util/update_copyrights index a3a0d85525..bc9ab18402 100644 --- a/util/update_copyrights +++ b/util/update_copyrights @@ -231,7 +231,7 @@ foreach $file (keys %file_types) { ($nonspaceprefix = $prefix) =~ s/\s+$//; - open(SOURCE, "<$file") || die "can't open $file: $!"; + open(SOURCE, "<:crlf", $file) || die "can't open $file: $!"; $_ = ; if ($type eq "YACC") { unless ($_ eq "%{\n") {