diff options
author | Tom Ryder <tom@sanctum.geek.nz> | 2014-04-26 23:27:37 +1200 |
---|---|---|
committer | Tom Ryder <tom@sanctum.geek.nz> | 2014-04-26 23:27:37 +1200 |
commit | 8bba7d36ce46b292d47ea49eee95695d0d053783 (patch) | |
tree | c54be0ab105df49b30651ff5664582f5c2db069a /urxvt/ext | |
parent | Remove Urxvt.perl-lib definition (diff) | |
download | dotfiles-8bba7d36ce46b292d47ea49eee95695d0d053783.tar.gz dotfiles-8bba7d36ce46b292d47ea49eee95695d0d053783.zip |
UTF-8 encoding needed before clipboard print
Diffstat (limited to 'urxvt/ext')
-rw-r--r-- | urxvt/ext/clip | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/urxvt/ext/clip b/urxvt/ext/clip index ce698328..4f890c0e 100644 --- a/urxvt/ext/clip +++ b/urxvt/ext/clip @@ -14,7 +14,9 @@ sub on_start { sub clip { my ($self) = @_; if ( open CLIPBOARD, '| xsel -ib' ) { - print CLIPBOARD $self->selection(); + my $sel = $self->selection(); + utf8::encode($sel); + print CLIPBOARD $sel; close CLIPBOARD; } return; |