diff options
author | Tom Willemse | 2013-08-14 21:50:44 +0200 |
---|---|---|
committer | Tom Willemse | 2013-08-14 21:50:44 +0200 |
commit | 4807c6194a5be5c97584f9736a13cb89ee70d166 (patch) | |
tree | 0dc1883ca826b6eec33b6a5a7e7e1fb7af4a448a | |
parent | e50a16cd80da3c5b8587ca49e5cb036eec789c1e (diff) | |
download | urxvt-modeline-4807c6194a5be5c97584f9736a13cb89ee70d166.tar.gz urxvt-modeline-4807c6194a5be5c97584f9736a13cb89ee70d166.zip |
Locale decode output of command
Otherwise strange encoding errors seem to happen.
-rwxr-xr-x | modeline | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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; |