tools: validate utf8 encoding in stdin/out
[sheet.git] / tools / mkcharinfo
index 0f5d9bbe13d636f53a598862172a7e7843f862cb..6d08f9e868004b87b649e150f943eea04f51590b 100755 (executable)
@@ -4,7 +4,7 @@ use warnings;
 use utf8;
 no if $] >= 5.018, warnings => 'experimental::smartmatch';
 
-use open OUT => ':utf8', ':std';
+use open OUT => ':encoding(utf-8)', ':std';
 use Data::Dump 'pp';
 
 our $VERSION = '1.02';