aboutsummaryrefslogtreecommitdiff
path: root/urxvt/ext
diff options
context:
space:
mode:
authorTom Ryder <tom@sanctum.geek.nz>2014-04-26 23:27:37 +1200
committerTom Ryder <tom@sanctum.geek.nz>2014-04-26 23:27:37 +1200
commit8bba7d36ce46b292d47ea49eee95695d0d053783 (patch)
treec54be0ab105df49b30651ff5664582f5c2db069a /urxvt/ext
parente38108db214727499bd59ec02aa06c5f08668392 (diff)
downloaddotfiles-8bba7d36ce46b292d47ea49eee95695d0d053783.tar.gz
dotfiles-8bba7d36ce46b292d47ea49eee95695d0d053783.zip
UTF-8 encoding needed before clipboard print
Diffstat (limited to 'urxvt/ext')
-rw-r--r--urxvt/ext/clip4
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;