git.shiar.nl
/
sheet.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(from parent 1:
d3b21c8
)
rfc1345convert: prevent output encoding warnings
author
Mischa POSLAWSKY
<perl@shiar.org>
Sun, 19 Apr 2009 01:35:29 +0000
(
01:35
+0000)
committer
Mischa 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
patch
|
blob
|
history
diff --git
a/rfc1345convert
b/rfc1345convert
index f6f0ab8a2f88a5230fa2e6f2ee127143a3423ec3..cae6d47b9014d2a67ecd32955a1f3fb15e868a14 100755
(executable)
--- a/
rfc1345convert
+++ b/
rfc1345convert
@@
-3,6
+3,7
@@
use strict;
use warnings;
+use open OUT => ':utf8', ':std';
use Data::Dumper;
our $VERSION = '1.01';