summaryrefslogtreecommitdiff
path: root/Porting/bump-perl-version
diff options
context:
space:
mode:
authorSteve Hay <steve.m.hay@googlemail.com>2010-02-20 16:22:41 +0000
committerSteve Hay <steve.m.hay@googlemail.com>2010-02-20 16:22:41 +0000
commit33c1015fda04899ea576248c4c328da8ad24e12c (patch)
tree944aaa40e4f7f7befe2ecbc5836692301e7cb064 /Porting/bump-perl-version
parent9b49dc400d59e69f15e3fb678ee168366d322633 (diff)
downloadperl-33c1015fda04899ea576248c4c328da8ad24e12c.tar.gz
Stop Porting/bump-perl-version from changing EOLs on Win32
Diffstat (limited to 'Porting/bump-perl-version')
-rwxr-xr-xPorting/bump-perl-version2
1 files changed, 2 insertions, 0 deletions
diff --git a/Porting/bump-perl-version b/Porting/bump-perl-version
index c460ad4ca7..b0e77a8907 100755
--- a/Porting/bump-perl-version
+++ b/Porting/bump-perl-version
@@ -293,6 +293,7 @@ sub do_update {
my %contents;
for my $file (sort keys %changes) {
open my $fh, '<', $file or die "open '$file': $!\n";
+ binmode $fh;
$contents{$file} = [ <$fh> ];
chomp @{$contents{$file}};
close $fh or die "close: '$file': $!\n";
@@ -323,6 +324,7 @@ sub do_update {
for my $file (sort keys %contents) {
my $nfile = "$file-new";
open my $fh, '>', $nfile or die "create '$nfile' failed: $!\n";
+ binmode $fh;
print $fh $_, "\n" for @{$contents{$file}};
close $fh or die "failed to close $nfile; aborting: $!\n";