Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 155369 - app-shells/bash-3.2_p5 and sys-libs/readline-5.2 cause buggy behaviour with non-ASCII chars
Summary: app-shells/bash-3.2_p5 and sys-libs/readline-5.2 cause buggy behaviour with n...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Gentoo's Team for Core System packages
URL:
Whiteboard:
Keywords:
: 154062 (view as bug list)
Depends on:
Blocks:
 
Reported: 2006-11-16 08:25 UTC by Evgeniy Dushistov
Modified: 2007-03-24 08:09 UTC (History)
6 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
Upstream patch which should fix this issue. (bash-3.2_p10-redisplay-cursor.patch,654 bytes, patch)
2007-03-11 16:01 UTC, Peter Volkov (RETIRED)
Details | Diff
patch for ebuild (bash-3.2_p10.ebuild.patch,329 bytes, patch)
2007-03-11 17:44 UTC, Peter Volkov (RETIRED)
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Evgeniy Dushistov 2006-11-16 08:25:36 UTC
Step to reproduce:
1)mkdir /tmp/БББ (Б - is cyrillic letter, works with any not English letter).
2)cd /tmp/БББ
after that terminal will looks like
/tmp/&#1041;&#1041;&#1041; $               <cursor is here>
and if put in something, the letters will appear not near the "$",
and even not after last entered, they will appear in the random places of line,
and I can not move cursor to "$".

buggy bash is app-shells/bash-3.2_p5 and  sys-libs/readline-5.2,
not affected:
bash 3.1_p17 and readline 5.1_p4

$echo $PS1
\[\033[01;32m\]\u@\h\[\033[01;34m\] \w>\[\033[00m\]
Comment 1 Evgeniy Dushistov 2006-11-16 08:28:21 UTC
emerge --info
Portage 2.1.1-r1 (default-linux/x86/2006.0, gcc-4.1.1, glibc-2.4-r4, 2.6.17-gentoo-r8 i686)
=================================================================
System uname: 2.6.17-gentoo-r8 i686 AMD Athlon(tm) XP 2600+
Gentoo Base System version 1.12.6
Last Sync: Wed, 15 Nov 2006 17:30:01 +0000
app-admin/eselect-compiler: [Not Present]
dev-java/java-config: 1.3.7, 2.0.30
dev-lang/python:     2.3.5-r2, 2.4.3-r4
dev-python/pycrypto: 2.0.1-r5
dev-util/ccache:     [Not Present]
dev-util/confcache:  [Not Present]
sys-apps/sandbox:    1.2.17
sys-devel/autoconf:  2.13, 2.60
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2
sys-devel/binutils:  2.16.1-r3
sys-devel/gcc-config: 1.3.13-r4
sys-devel/libtool:   1.5.22
virtual/os-headers:  2.6.17-r1
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-O2 -march=athlon-xp -fomit-frame-pointer -mfpmath=sse -msse -mmmx -m3dnow -pipe"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/NX/etc /usr/NX/home /usr/share/X11/xkb /usr/share/texmf/dvipdfm/config/ /usr/share/texmf/dvips/config/ /usr/share/texmf/tex/generic/config/ /usr/share/texmf/tex/platex/config/ /usr/share/texmf/xdvi/"
CONFIG_PROTECT_MASK="/etc/env.d /etc/env.d/java/ /etc/gconf /etc/java-config/vms/ /etc/revdep-rebuild /etc/splash /etc/terminfo"
CXXFLAGS="-O2 -march=athlon-xp -fomit-frame-pointer -mfpmath=sse -msse -mmmx -m3dnow -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig distlocks metadata-transfer sandbox sfperms strict"
GENTOO_MIRRORS="http://distfiles.gentoo.org http://distro.ibiblio.org/pub/linux/distributions/gentoo"
LANG="ru_RU.UTF-8"
LC_ALL=""
LDFLAGS="-Wl,-O1 -Wl,--sort-common"
LINGUAS="en ru"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --delete-after --stats --timeout=180 --exclude='/distfiles' --exclude='/local' --exclude='/packages'"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/home/evgeniy/portage /usr/portage/local/layman/nx"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="x86 3dnow X acl alsa apache2 apm arts bash-completion berkdb bitmap-fonts cjk cli cracklib crypt cups dlloader doc dri eds elibc_glibc emacs emboss encode esd fam fbcon firefox font-server foomaticdb fortran gdbm gif gimpprint gpm gstreamer gtk gtk2 iconv imlib input_devices_keyboard input_devices_mouse isdnlog jpeg kde kdeenablefinal kdexdeltas kernel_linux libg++ libwww linguas_en linguas_ru logrotate mad maildir mikmod mmx motif mp3 mpeg ncurses nls nptl nptlonly ogg opengl oss pam pcre perl png ppds pppd python qt3 qt4 quicktime readline reflection sdl session spel spell spl sse ssl tcpd tiff truetype truetype-fonts type1-fonts udev unicode usb userland_GNU video_cards_fbdev video_cards_nv video_cards_nvidia video_cards_vesa video_cards_vga vorbis xml xorg xv zlib"
Unset:  CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, PORTAGE_RSYNC_EXTRA_OPTS
Comment 2 SpanKY gentoo-dev 2006-12-16 03:48:51 UTC
bash-3.2_p9 and readline-5.2_p1 should work
Comment 3 Jakub Moc (RETIRED) gentoo-dev 2006-12-16 03:57:20 UTC
(In reply to comment #2)
> bash-3.2_p9 and readline-5.2_p1 should work

No, sorry. :/

$ mkdir &#269;&#269;&#269;&#269;
$ cd &#269;&#269;&#269;&#269;
~/&#269;&#269;&#269;&#269; $              * <- cursor somewhere here...

Now type something, like echo:
$                      e                     c o                   h
Comment 4 Congtat Cia 2007-01-24 12:50:44 UTC
Is this a duplicate of Bug 154062 ?
Comment 5 Peter Volkov (RETIRED) gentoo-dev 2007-03-11 16:01:54 UTC
Created attachment 112957 [details, diff]
Upstream patch which should fix this issue.

This patch fixes the problem.
Comment 6 Evgeniy Dushistov 2007-03-11 16:23:44 UTC
(In reply to comment #5)
> Created an attachment (id=112957) [edit]
> Upstream patch which should fix this issue.
> 
> This patch fixes the problem.
> 

Great. Works for me.
Comment 7 Peter Volkov (RETIRED) gentoo-dev 2007-03-11 17:33:42 UTC
*** Bug 154062 has been marked as a duplicate of this bug. ***
Comment 8 Peter Volkov (RETIRED) gentoo-dev 2007-03-11 17:44:10 UTC
Created attachment 112973 [details, diff]
patch for ebuild

To simplify things here is the patch for ebuild.

base-system: is this Ok to commit?
Comment 9 Jakub Moc (RETIRED) gentoo-dev 2007-03-11 17:56:22 UTC
Cool, works here as well...
Comment 10 SpanKY gentoo-dev 2007-03-11 18:53:25 UTC
did Chet send you that privately ?  i dont see it on the upstream mailing list
Comment 11 Rémi Cardona (RETIRED) gentoo-dev 2007-03-13 22:17:26 UTC
vote+1 for committing the patch. Thanks :)
Comment 12 Togge 2007-03-14 06:21:45 UTC
As the reporter of Bug #154062 I concur that this fixes the bug.
Comment 13 Peter Volkov (RETIRED) gentoo-dev 2007-03-23 06:34:34 UTC
Fixed in bash-3.2_p10-r1.
Comment 14 SpanKY gentoo-dev 2007-03-24 08:09:43 UTC
are you kidding me ?  if you're going to screw with a package without checking with the maintainers first, you could at the very least update your cvs tree so you dont work off of old versions