From: Michael Stapelberg Date: Wed, 25 Jun 2014 08:00:23 +0000 (+0200) Subject: Bugfix: interpret commandline parameters as utf-8 X-Git-Tag: 4.9~87^2^2 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=ad7bf58822b7d6f937a6da29689b8177fd69cc05;p=i3%2Fi3 Bugfix: interpret commandline parameters as utf-8 fixes #1293 --- diff --git a/i3-save-tree b/i3-save-tree index 53d67e99..add4c8c1 100755 --- a/i3-save-tree +++ b/i3-save-tree @@ -18,6 +18,7 @@ use Pod::Usage; use AnyEvent::I3; use JSON::XS; use List::Util qw(first); +use Encode qw(decode); use v5.10; use utf8; use open ':encoding(UTF-8)'; @@ -48,6 +49,9 @@ unless (defined($workspace) ^ defined($output)) { die "Only one of --workspace or --output can be specified"; } +$workspace = decode('utf-8', $workspace); +$output = decode('utf-8', $output); + my $i3 = i3(); if (!$i3->connect->recv) { die "Could not connect to i3";