projects
/
catagits/Catalyst-Runtime.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
(from parent 1:
04e5fb8
)
Set binmode on files created using the helper, so they are created properly on win32
Andy Grundman [Thu, 20 Oct 2005 18:36:57 +0000 (18:36 +0000)]
lib/Catalyst/Helper.pm
patch
|
blob
|
blame
|
history
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;