Skip to content
This repository has been archived by the owner on Jan 8, 2019. It is now read-only.

Commit

Permalink
mark stdout as utf8
Browse files Browse the repository at this point in the history
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 17abfe5
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions camptail.pl
Expand Up @@ -3,6 +3,8 @@
use RoomState; # DEPEND use RoomState; # DEPEND
use Getopt::Long; use Getopt::Long;


binmode(STDOUT, ':utf8');

my $rcfile = "$ENV{HOME}/.camptailrc"; my $rcfile = "$ENV{HOME}/.camptailrc";
my $host; my $host;
my $auth; my $auth;
Expand Down

0 comments on commit 17abfe5

Please sign in to comment.