* remove obsolete pragma "use encoding 'utf-8';"
authormitty <mitty@7d2118f6-f56c-43e7-95a2-4bb3031d96e7>
Thu, 24 Jan 2013 14:16:54 +0000 (14:16 +0000)
committermitty <mitty@7d2118f6-f56c-43e7-95a2-4bb3031d96e7>
Thu, 24 Jan 2013 14:16:54 +0000 (14:16 +0000)
  * see http://blog.livedoor.jp/dankogai/archives/51221731.html
 * set binmode to STDOUT
  * see http://blog.livedoor.jp/dankogai/archives/51031595.html
 * see also http://perl-users.jp/articles/advent-calendar/2011/casual/2

git-svn-id: https://lab.mitty.jp/svn/lab/trunk@191 7d2118f6-f56c-43e7-95a2-4bb3031d96e7

misc/findcombinable.pl
misc/findnonsjis.pl
misc/pagetitle.pl

index b6e62a9..3e5f51d 100755 (executable)
@@ -3,7 +3,6 @@
 use strict;
 use warnings;
 use utf8;
-use encoding 'utf-8';
 
 use Unicode::Normalize qw(NFC NFKC);
 
index dbf8c9c..2469ca5 100755 (executable)
@@ -3,7 +3,6 @@
 use strict;
 use warnings;
 use utf8;
-use encoding 'utf-8';
 
 use Encode;
 
index f3e790b..0027128 100755 (executable)
@@ -2,9 +2,10 @@
 
 use strict;
 use warnings;
-use encoding 'utf-8';
+use utf8;
 
 use LWP::Simple;
+binmode STDOUT => 'encoding(utf8)';
 
 my $file = shift @ARGV || exit;
 my $list;