projects
/
MojoFacets.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
872e771
)
dump code with utf8 encoding
author
Dobrica Pavlinusic
<dpavlin@rot13.org>
Sun, 20 Jun 2010 11:29:44 +0000
(13:29 +0200)
committer
Dobrica Pavlinusic
<dpavlin@rot13.org>
Sun, 20 Jun 2010 11:29:44 +0000
(13:29 +0200)
lib/MojoFacets/Data.pm
patch
|
blob
|
history
diff --git
a/lib/MojoFacets/Data.pm
b/lib/MojoFacets/Data.pm
index
05d7fbe
..
dc3fd7b
100644
(file)
--- a/
lib/MojoFacets/Data.pm
+++ b/
lib/MojoFacets/Data.pm
@@
-642,7
+642,7
@@
sub items {
if ( -e $path && ! $self->param('overwrite') ) {
warn "# code $path not saved\n";
} else {
- write_file
$path, $code
;
+ write_file
( $path, { binmode => ':utf8' }, $code )
;
warn "code $path ", -s $path, " bytes saved\n";
}
}