aboutsummaryrefslogtreecommitdiffstats
path: root/xmpt
diff options
context:
space:
mode:
authorBrian Cully <bjc@kublai.com>2017-11-13 09:11:19 -0500
committerBrian Cully <bjc@kublai.com>2017-11-13 09:11:19 -0500
commit01afbc332316005a1cf7393fcdde3042be4316eb (patch)
tree738f0df67817acdf08f6d6cdaf84eca7aa91127d /xmpt
parent9d837e301e8163e4d398bc462ed31c34a2e52fae (diff)
downloadxmpt-01afbc332316005a1cf7393fcdde3042be4316eb.tar.gz
xmpt-01afbc332316005a1cf7393fcdde3042be4316eb.zip
Config file is utf8.
Diffstat (limited to 'xmpt')
-rwxr-xr-xxmpt2
1 files changed, 2 insertions, 0 deletions
diff --git a/xmpt b/xmpt
index 2fe643e..337e00e 100755
--- a/xmpt
+++ b/xmpt
@@ -61,6 +61,7 @@ sub read_conf {
my $fh = new IO::File("<$filen") ||
die "Couldn't open $filen for reading: $!\n";
+ binmode($fh, ':utf8');
map {
chomp;
s/\#.*$//;
@@ -147,6 +148,7 @@ sub thunk {
['thunk',
sub {
package evalpkg;
+ use utf8;
local $evalpkg::arg = shift;
my $rc = eval $b;
$@ &&