aboutsummaryrefslogtreecommitdiff
path: root/urxvt/ext
diff options
context:
space:
mode:
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;