From d74da0c02c35e2b93d45201434deb58d8f0340e0 Mon Sep 17 00:00:00 2001 From: "seawood%netscape.com" Date: Mon, 23 Jun 2003 21:36:19 +0000 Subject: [PATCH] Force files to be read as binary to avoid line-ending issues on win32. Bug #196499 --- config/build-list.pl | 2 ++ 1 file changed, 2 insertions(+) diff --git a/config/build-list.pl b/config/build-list.pl index 32c1d3d8bdb..642e0816985 100755 --- a/config/build-list.pl +++ b/config/build-list.pl @@ -66,6 +66,7 @@ mozLock($lockfile) unless $nofilelocks; undef @inbuf; if ( -e "$file" ) { open(IN, "$file") || die ("$file: $!\n"); + binmode(IN); while ($tmp = ) { chomp($tmp); push @inbuf, $tmp; @@ -84,6 +85,7 @@ $count = $#outbuf + 1; # Append new entry to file if ($count) { open(OUT, ">>$file") || die ("$file: $!\n"); + binmode(OUT); foreach $entry (@outbuf) { print OUT "$entry\n"; }