From: Tomohiro K. <ku...@de...> - 2003-02-18 02:26:54
|
久保田です。 Debian へのバグ報告の転送です。 どうやら、ひとつのマルチバイト文字を構成するバイトとバイトの間に、 カーソル移動のエスケープシーケンスが割り込んでいる場合にも、 マルチバイト文字をきちんと表示して欲しい、ということだと思います。 # おそらく、カーソル移動というよりはカーソル位置指定のエスケープ # シーケンスのことを言っているのではないかと思います。たんに # 文字列をふつうに表示するために、ひと文字出力するたびにいちいち # カーソル位置指定を入れるソフトウェアって、存在したりするので。 # ちなみに、ぼくが初めて PC Unix 関連でパッチを書いたのが、 # minicom という BBS Client みたいなソフトウェアの、まさしく # この問題の解決でした。 ぼく自身はあまり優先順位は高くないかなと思っていますが、こういう 要望があります、ということです。というのは、これは一見便利なように 見えますが、バイト数とカラム数が一致しないような場合に、 アルゴリズムが破綻するからです。 --- 久保田智広 Tomohiro KUBOTA <ku...@de...> http://www.debian.or.jp/~kubota/ ---------以下、バグ報告の内容です。 From: Wang WenRui <wa...@ma...> Subject: Bug#181318: mlterm can not work with bitchx ( cjk input ) Date: Mon, 17 Feb 2003 10:39:56 +0800 > Package: mlterm > Version: 2.6.3.cvs20030216-1 > Severity: normal > Tags: upstream > > In the irc client bitchx, when you input a word in Chinese(I guess all > the multibyte-characters have this problem), the cursor moves but > the echo is nothing. Then press CR, the correct word is sent. > > So I launch the program "script" to see what happens. I found that the > echo from bitchx work in this way: a vt100 sequence moving the cursor, > then a single character(half the multibyte character), then sequence > again, .... , and so on. > > Then I could draw a conclution that mlterm doesn't merge two halfs of > a multibyte-character when there is vt100 sequences between them. > Isn't it? > > -- System Information: > Debian Release: testing/unstable > Architecture: i386 > Kernel: Linux winter 2.4.18-686 #1 Sun Apr 14 11:32:47 EST 2002 i686 > Locale: LANG=zh_CN.GBK, LC_CTYPE=zh_CN.GBK (ignored: LC_ALL set) > > Versions of packages mlterm depends on: > ii libc6 2.3.1-11 GNU C Library: Shared libraries an > ii libfontconfig1 2.1-14 generic font configuration library > ii libfreetype6 2.1.3-9 FreeType 2 font engine, shared lib > ii libfribidi0 0.10.4-0.1 Free Implementation of the Unicode > ii libgdk-pixbuf2 0.22.0-1 The GdkPixBuf image library, gtk+ > ii libglib1.2 1.2.10-6 The GLib library of C routines > ii libgtk1.2 1.2.10-14 The GIMP Toolkit set of widgets fo > ii libxft2 2.1-7 advanced font drawing library for > ii xlibs 4.2.1-5 X Window System client libraries > ii zlib1g 1:1.1.4-9 compression library - runtime > > -- no debconf information > > |