Skip to content

Commit

Permalink
[web] get rid of some "wide character in print" warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
moritz committed May 8, 2010
1 parent 60d0280 commit 4f43c3c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion web/build-project-list.pl
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
use HTML::Template;

my $output_dir = shift(@ARGV) || './';
binmode STDOUT, ':encoding(UTF-8)';

local $| = 1;
my $stats = { success => 0, failed => 0, errors => [] };
Expand Down Expand Up @@ -77,7 +78,7 @@
print "index.html and proto.json files generated\n";

sub spew {
open( my $fh, ">", shift ) or return -1;
open( my $fh, ">:encoding(UTF-8)", shift ) or return -1;
print $fh @_;
close $fh;
return;
Expand Down

0 comments on commit 4f43c3c

Please sign in to comment.