From: Mark Andrews Date: Fri, 12 Apr 2019 04:09:01 +0000 (+1000) Subject: support files which have CR LF ending like those in win32utils X-Git-Tag: v9.15.0~45^2 X-Git-Url: http://git.ipfire.org/gitweb/index.cgi?a=commitdiff_plain;h=e76936fd85d2b05058f7de11ce1ca9e044b59c04;p=thirdparty%2Fbind9.git support files which have CR LF ending like those in win32utils --- diff --git a/util/update_copyrights b/util/update_copyrights index 299ce9f62e5..fd86d0026bc 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") {