aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Tom Willemse2013-08-14 21:50:44 +0200
committerGravatar Tom Willemse2013-08-14 21:50:44 +0200
commit4807c6194a5be5c97584f9736a13cb89ee70d166 (patch)
tree0dc1883ca826b6eec33b6a5a7e7e1fb7af4a448a
parente50a16cd80da3c5b8587ca49e5cb036eec789c1e (diff)
downloadurxvt-modeline-4807c6194a5be5c97584f9736a13cb89ee70d166.tar.gz
urxvt-modeline-4807c6194a5be5c97584f9736a13cb89ee70d166.zip
Locale decode output of command
Otherwise strange encoding errors seem to happen.
-rwxr-xr-xmodeline2
1 files changed, 1 insertions, 1 deletions
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;