Permalink
Browse files

mark stdout as utf8

The input we get from campfire is properly encoded (and
seems to just be utf8), but perl complains about us spewing
wide characters to stdout. Let's tell it that utf8 is what
we want.
  • Loading branch information...
peff committed Mar 24, 2011
1 parent a3b5b5e commit 17abfe5df25dba9f86d95e4488835ea7d50c29dc
Showing with 2 additions and 0 deletions.
  1. +2 −0 camptail.pl
View
@@ -3,6 +3,8 @@
use RoomState; # DEPEND
use Getopt::Long;
+binmode(STDOUT, ':utf8');
+
my $rcfile = "$ENV{HOME}/.camptailrc";
my $host;
my $auth;

0 comments on commit 17abfe5

Please sign in to comment.