From e76936fd85d2b05058f7de11ce1ca9e044b59c04 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 --- util/update_copyrights | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/util/update_copyrights b/util/update_copyrights index 299ce9f62e..fd86d0026b 100644 --- a/util/update_copyrights +++ b/util/update_copyrights @@ -227,7 +227,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") {