rfc1345convert: prevent output encoding warnings
authorMischa POSLAWSKY <perl@shiar.org>
Sun, 19 Apr 2009 01:35:29 +0000 (01:35 +0000)
committerMischa POSLAWSKY <perl@shiar.org>
Wed, 22 Apr 2009 00:01:21 +0000 (00:01 +0000)
Output is fixed code which should always be UTF-8, regardless of STDOUT
capabilities (as it's rarely shown directly).  Declare this to prevent
warnings about wide characters (or worse).

rfc1345convert

index f6f0ab8a2f88a5230fa2e6f2ee127143a3423ec3..cae6d47b9014d2a67ecd32955a1f3fb15e868a14 100755 (executable)
@@ -3,6 +3,7 @@
 use strict;
 use warnings;
 
 use strict;
 use warnings;
 
+use open OUT => ':utf8', ':std';
 use Data::Dumper;
 
 our $VERSION = '1.01';
 use Data::Dumper;
 
 our $VERSION = '1.01';