bug-bash
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

utf8 command line editing


From: Alexander Zubkov
Subject: utf8 command line editing
Date: Tue, 03 May 2005 14:04:30 +0400
User-agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7.7) Gecko/20050414 MultiZilla/1.6.4.0b

Configuration Information [Automatically generated, do not change]:
Machine: i686
OS: linux-gnu
Compiler: i686-pc-linux-gnu-gcc
Compilation CFLAGS: -DPROGRAM='bash' -DCONF_HOSTTYPE='i686' -DCONF_OSTYPE='linux-gnu' -DCONF_MACHTYPE='i686-pc-linux-gnu' -DCONF_VENDOR='pc' -DLOCALEDIR='/usr/share/locale' -DPACKAGE='bash' -DSHELL -DHAVE_CONFIG_H -I. -I. -I./include -I./lib -O2 -mtune=athlon-xp -march=athlon-xp -fomit-frame-pointer uname output: Linux green 2.6.11-gentoo-r6 #1 Thu Apr 14 14:27:36 MSD 2005 i686 AMD Athlon(tm) XP 2200+ AuthenticAMD GNU/Linux
Machine Type: i686-pc-linux-gnu

Bash Version: 3.0
Patch Level: 16
Release Status: release

Description:
        Cursor position handled incorrectly when editing in utf8 locale.
        In my case I've russian keymap and editing string only of
        russian letters for example. Adding to the end or deleting last
        symbol is OK, but in the middle cursor and string have strange
        behavior.

Repeat-By:
        I've typed some russian letters (4 for example), move cursor
        left by arrows to the beginning of the string and press a key
        to insert new letter at the beginning - letter appears, but
        cursor moves 3 colums right. But when inserting between second
        and third letters (and righter - second half of the string)
        cursor is OK. In first situation (when cursor moves wrong number
        of columns). In my example i have inserted a letter in the
        beginning and have cursor at position 4 instead of 2.
        If i press left arrow - it moves only once to position 3 and
        then it thinks that it at the beginning - it is so, but cursor
        displayed wrong. Pressing right arrow making things OK - cursor
        return to where it shold bu - to position 1.
        Similar problems with deleting letters in the first half of the
        string. But with deleteng there also can be bad displaying of
        the string.
        Also I've some cases where rule of first half doesn't apply.





reply via email to

[Prev in Thread] Current Thread [Next in Thread]