Set binmode on files created using the helper, so they are created properly on win32
[catagits/Catalyst-Runtime.git] / lib / Catalyst / Helper.pm
index c0af652..64dad70 100644 (file)
@@ -217,6 +217,7 @@ sub mk_file {
         $file .= '.new';
     }
     if ( my $f = IO::File->new("> $file") ) {
+        $f->binmode;
         print $f $content;
         print qq/created "$file"\n/;
         return 1;