--- rxvt-unicode/src/perl/selection 2006/01/21 21:20:34 1.32 +++ rxvt-unicode/src/perl/selection 2006/01/22 11:57:06 1.33 @@ -112,7 +112,7 @@ # convert back from UTF-8 offset space to character space { - my $length = substr $text, $ofs, $len; + my $length = substr "$text ", $ofs, $len; utf8::decode $length; $len = length $length; }