Porting/corelist-perldelta.pl - Use Unix newlines in perldelta
authorAbir Viqar <abiviq@hushmail.com>
Sat, 14 Dec 2013 19:05:43 +0000 (14:05 -0500)
committerSteve Hay <steve.m.hay@googlemail.com>
Thu, 19 Dec 2013 17:26:26 +0000 (17:26 +0000)
Porting/corelist-perldelta.pl

index 0a9695e..690d66a 100755 (executable)
@@ -265,6 +265,7 @@ sub do_update_existing {
 
   my $text = DeltaUpdater::transform_pod( $existing, $data );
   open my $out, '>', $existing or die "can't open perldelta file $existing: $!";
+  binmode($out);
   print $out $text;
   close $out;
 }
@@ -544,6 +545,7 @@ sub do_check {
     my $append_to_out = '';
 
     open my $fh, '<', $existing or die "can't open perldelta file $existing: $!";
+    binmode($fh);
 
     while (<$fh>) {
       # treat the rest of the file as plain text