From 8bba7d36ce46b292d47ea49eee95695d0d053783 Mon Sep 17 00:00:00 2001 From: Tom Ryder Date: Sat, 26 Apr 2014 23:27:37 +1200 Subject: UTF-8 encoding needed before clipboard print --- urxvt/ext/clip | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'urxvt/ext') 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; -- cgit v1.2.3