My system has been configured to use utf-8. Everything works fine except command line editing (and openoffice-bin, but that's another problem). When typing some utf-8 characters like "
My system has been configured to use utf-8. Everything works fine except command line editing (and openoffice-bin, but that's another problem). When typing some utf-8 characters like "áí" and moving the cursor back one character and to insert something, say I'm inserting an "e", I'll get "íáeá" instead od "íeá" and the cursor is positioned behind the last "á". This behavior is reproducible with bash-3.0 and a lot of applications using readline-5.0. It's an old bug, mentioned at gnu.org one year ago (http://lists.gnu.org/archive/html/bug-bash/2004-10/msg00419.html). After some research I found, that there are two patches avaiable at https://svn.uludag.org.tr/paketler/trunk/app-shells/bash/files/pardus/. The uft8 patch fixes the byte count problem for monochrome prompts and the prompt patch additionally fixes line editing for colored prompts. I tried both patches together with app-shells/bash-3.0-r12 as well as sys-libs/readline-5.0-r2 and now the line editing errors are gone. So please add these two patches to the corresponding ebuilds. Reproducible: Always Steps to Reproduce: 1. configure your box to use utf-8 2. type some double byte characters at the command line, use the arrow keys to go back and insert some more characters between the previously typed 3. Portage 2.0.51.22-r3 (default-linux/amd64/2005.0, gcc-3.4.4, glibc-2.3.5-r2, 2.6.12-gentoo-r10 x86_64) ================================================================= System uname: 2.6.12-gentoo-r10 x86_64 AMD Turion(tm) 64 Mobile Technology ML-34 Gentoo Base System version 1.6.13 ccache version 2.3 [enabled] dev-lang/python: 2.3.5-r2 sys-apps/sandbox: 1.2.12 sys-devel/autoconf: 2.13, 2.59-r6 sys-devel/automake: 1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r1 sys-devel/binutils: 2.15.92.0.2-r10 sys-devel/libtool: 1.5.18-r1 virtual/os-headers: 2.6.11-r2 ACCEPT_KEYWORDS="amd64" AUTOCLEAN="yes" CBUILD="x86_64-pc-linux-gnu" CFLAGS="-march=k8 -O3 -pipe" CHOST="x86_64-pc-linux-gnu" CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3.4/env /usr/kde/3.4/share/config /usr/kde/3.4/shutdown /usr/kde/3/share/config /usr/lib/X11/xkb /usr/lib/fax /usr/share/config /var/qmail/control /var/spool/fax/etc" CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d" CXXFLAGS="-march=k8 -O3 -pipe" DISTDIR="/usr/portage/distfiles" FEATURES="autoconfig ccache distlocks sandbox sfperms strict" GENTOO_MIRRORS="http://pandemonium.tiscali.de/pub/gentoo/ http://gd.tuwien.ac.at/opsys/linux/gentoo/ ftp://gd.tuwien.ac.at/opsys/linux/gentoo/ http://mir.zyrianes.net/gentoo/ http://194.117.143.72 http://ftp.du.se/pub/os/gentoo http://mirror.switch.ch/mirror/gentoo/ http://ftp.uni-erlangen.de/pub/mirrors/gentoo http://ftp.ntua.gr/pub/linux/gentoo/ http://ftp-stud.fht-esslingen.de/pub/Mirrors/gentoo/" LANG="de_DE.utf8" LC_ALL="de_DE.utf8" PKGDIR="/usr/portage/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="/usr/local/portage" SYNC="rsync://192.168.0.2/gentoo-portage" USE="amd64 X acpi alsa arts avi bash-completion berkdb bitmap-fonts bzip2 cdr crypt cups doc dvd dvdr eds emboss encode fam faxonly fbcon foomaticdb gdbm gif gpm gstreamer gtk gtk2 ieee1394 imlib java jpeg kde lzw lzw-tiff mad mp3 mpeg ncurses nptl opengl pam pcmcia pcre pdflib perl pic png python qt quicktime readline sdl ssl symlink tcpd tiff truetype truetype-fonts type1-fonts unicode usb userlocales wifi xml2 xpm xv zlib userland_GNU kernel_linux elibc_glibc" Unset: ASFLAGS, CTARGET, LDFLAGS, LINGUAS, MAKEOPTS
Oh, I forgot to mention, this is not an amd64-only issue. It also occurs with x86 systems.
*** This bug has been marked as a duplicate of 69407 ***