diff options
author | Steve Hay <steve.m.hay@googlemail.com> | 2010-02-20 16:22:41 +0000 |
---|---|---|
committer | Steve Hay <steve.m.hay@googlemail.com> | 2010-02-20 16:22:41 +0000 |
commit | 33c1015fda04899ea576248c4c328da8ad24e12c (patch) | |
tree | 944aaa40e4f7f7befe2ecbc5836692301e7cb064 /Porting/bump-perl-version | |
parent | 9b49dc400d59e69f15e3fb678ee168366d322633 (diff) | |
download | perl-33c1015fda04899ea576248c4c328da8ad24e12c.tar.gz |
Stop Porting/bump-perl-version from changing EOLs on Win32
Diffstat (limited to 'Porting/bump-perl-version')
-rwxr-xr-x | Porting/bump-perl-version | 2 |
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"; |