From: Dan Boger Date: Fri, 7 Aug 2009 08:25:20 +0000 (-0700) Subject: r687 - Make sure we're reading the async tweets in a unicode-safe way X-Git-Url: https://git.sommitrealweird.co.uk/twirssi-net-twitter-lite.git/commitdiff_plain/2931223071f48e8a92e9a2353694ef534a44d295?hp=cea77b615a794190eb94e6b3535a9f5ea45a2485 r687 - Make sure we're reading the async tweets in a unicode-safe way --- diff --git a/twirssi.pl b/twirssi.pl index 356660f..1f0f895 100644 --- a/twirssi.pl +++ b/twirssi.pl @@ -12,7 +12,7 @@ $Data::Dumper::Indent = 1; use vars qw($VERSION %IRSSI); $VERSION = "2.2.5beta"; -my ($REV) = '$Rev: 677 $' =~ /(\d+)/; +my ($REV) = '$Rev: 687 $' =~ /(\d+)/; %IRSSI = ( authors => 'Dan Boger', contact => 'zigdon@gmail.com', @@ -21,7 +21,7 @@ my ($REV) = '$Rev: 677 $' =~ /(\d+)/; . 'Can optionally set your bitlbee /away message to same', license => 'GNU GPL v2', url => 'http://twirssi.com', - changed => '$Date: 2009-07-22 13:58:05 -0700 (Wed, 22 Jul 2009) $', + changed => '$Date: 2009-08-07 01:24:53 -0700 (Fri, 07 Aug 2009) $', ); my $window; @@ -1032,6 +1032,7 @@ sub monitor_child { # pretend if ( open FILE, $filename ) { + bindmode FILE, ":utf8"; my @lines; my %new_cache; while () {