From: Carlos Date: 2004-05-19T22:39:33+09:00 Subject: Re: [bug] irb or xterm crash with UTF-8 [Simon Strandgaard , 2004-05-19 13.45 CEST] > server> irb > irb(main):001:0> $KCODE='U' > => "U" > irb(main):002:0> str = [0x70, 0x80, 0x90].pack('U*') > => "p詑 > > Then it just hangs forever.. $ irb irb(main):001:0> $KCODE='U' => "U" irb(main):002:0> str = [0x70, 0x80, 0x90].pack('U*').unpack("C*") => [112, 194, 128, 194, 144] I guess the last character is interpreted as a control character by your xterm. Reading the xterm changelog, version 175 (one more than to have) has an option to treat characters between 128 and 159 as printable and not control. --