diff options
author | Steve Hay <steve.m.hay@googlemail.com> | 2010-02-21 19:41:49 +0000 |
---|---|---|
committer | Steve Hay <steve.m.hay@googlemail.com> | 2010-02-21 19:41:49 +0000 |
commit | 2187fa1935eeeb892e1dbc1b13dce867d64c62e1 (patch) | |
tree | 20212125e24bec609f8058a9b09a88dbc4557676 | |
parent | 5b1f92675e6dc88f9cbebe99d6b5ca92f6275b33 (diff) | |
download | perl-2187fa1935eeeb892e1dbc1b13dce867d64c62e1.tar.gz |
Stop pod/buildtoc from changing EOLs on Win32
-rwxr-xr-x | pod/buildtoc | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/pod/buildtoc b/pod/buildtoc index 4dd4271361..12cbc94592 100755 --- a/pod/buildtoc +++ b/pod/buildtoc @@ -748,6 +748,7 @@ while (my ($target, $name) = each %Targets) { } print "Now processing $name\n" if $Verbose; open THING, $name or die "Can't open $name: $!"; + binmode THING; my @orig = <THING>; my $orig = join '', @orig; close THING; @@ -762,6 +763,7 @@ while (my ($target, $name) = each %Targets) { } rename $name, "$name.old" or die "$0: Can't rename $name to $name.old: $!"; open THING, ">$name" or die "$0: Can't open $name for writing: $!"; + binmode THING; print THING $new or die "$0: print to $name failed: $!"; close THING or die "$0: close $name failed: $!"; } |