From 4807c6194a5be5c97584f9736a13cb89ee70d166 Mon Sep 17 00:00:00 2001 From: Tom Willemse Date: Wed, 14 Aug 2013 21:50:44 +0200 Subject: [PATCH] Locale decode output of command Otherwise strange encoding errors seem to happen. --- modeline | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modeline b/modeline index c296dfb..b9bd0a0 100755 --- a/modeline +++ b/modeline @@ -45,7 +45,7 @@ sub refresh { my $text = " " x $ncol; my $rend = [($self->{rs_tabbar}) x $ncol]; - my $output = `$self->{command} $ncol`; + my $output = $self->locale_decode(`$self->{command} $ncol`); substr $text, 0, length $output, $output; my $idx = 0;