projects
/
catagits/Catalyst-Runtime.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
Set binmode on files created using the helper, so they are created properly on win32
[catagits/Catalyst-Runtime.git]
/
lib
/
Catalyst
/
Helper.pm
diff --git
a/lib/Catalyst/Helper.pm
b/lib/Catalyst/Helper.pm
index
c0af652
..
64dad70
100644
(file)
--- a/
lib/Catalyst/Helper.pm
+++ b/
lib/Catalyst/Helper.pm
@@
-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;