diff options
author | Neil Moore <neil@s-z.org> | 2012-04-30 17:39:38 -0500 |
---|---|---|
committer | Neil Moore <neil@s-z.org> | 2012-04-30 17:39:38 -0500 |
commit | a2f81095acaa7f73ee79d1fdddef3dd47518c9c2 (patch) | |
tree | b84408e933381e79b54b6022b42e275735a31bda | |
parent | 5256de40f8c331c5faed104c0c0da391c70656b9 (diff) | |
download | crawlbot-a2f81095acaa7f73ee79d1fdddef3dd47518c9c2.tar.gz crawlbot-a2f81095acaa7f73ee79d1fdddef3dd47518c9c2.zip |
Parse monster output as UTF-8.
-rw-r--r-- | lib/Crawl/Bot/Plugin/Monster.pm | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/Crawl/Bot/Plugin/Monster.pm b/lib/Crawl/Bot/Plugin/Monster.pm index 6140c70..ffa5940 100644 --- a/lib/Crawl/Bot/Plugin/Monster.pm +++ b/lib/Crawl/Bot/Plugin/Monster.pm @@ -36,6 +36,7 @@ sub get_monster_info { exec "bin/monster-$branch", $monster or die "could not execute monster-$branch: $!"; }; + binmode F, ":utf8"; local $/ = undef; my $resp = <F>; CORE::close(F); |