From: Thomas Dickey Date: 2004-05-20T06:58:50+09:00 Subject: Re: [bug] irb or xterm crash with UTF-8 Simon Strandgaard wrote: > Carlos wrote: >> [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. but the thread seems to indicate it wasn't setup properly for UTF-8 anyway. > That makes sense. Thanks. > BTW: any suggestion for a better alternative than xterm? > hopefully with antialiased font rendering.. (but not qt) xterm does that... xterm supports ANSI color, VT220 emulation and UTF-8 There's an faq at http://invisible-island.net/xterm/xterm.faq.html ftp://invisible-island.net/xterm/ -- Thomas E. Dickey http://invisible-island.net ftp://invisible-island.net