bug-bash
[Top][All Lists]
Advanced

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

cursor positioning errors


From: jim
Subject: cursor positioning errors
Date: Tue, 26 May 2009 17:40:24 -0400

Configuration Information [Automatically generated, do not change]:
Machine: x86_64
OS: linux-gnu
Compiler: gcc
Compilation CFLAGS:  -DPROGRAM='bash' -DCONF_HOSTTYPE='x86_64' 
-DCONF_OSTYPE='linux-gnu' -DCONF_MACHTYPE='x86_64-pc-linux-gnu' 
-DCONF_VENDOR='pc' -DLOCALEDIR='/usr/share/locale' -DPACKAGE='bash' -DSHELL 
-DHAVE_CONFIG_H   -I.  -I../bash -I../bash/include -I../bash/lib   -g -O2 -Wall
uname output: Linux psychosis 2.6.27.3 #1 SMP Wed Oct 22 23:21:57 EDT 2008 
x86_64 GNU/Linux
Machine Type: x86_64-pc-linux-gnu

Bash Version: 3.2
Patch Level: 39
Release Status: release

Description:
        There are some cursor positioning errors that I occasionally
        run into, particularly when using reverse-isearch.  While
        trying to reproduce it, I noticed that this seems dependent
        on the locale, at least.

Repeat-By:
        Make sure you have en_US and en_US.UTF-8 locales generated. 

        $ env -i LC_CTYPE=en_US PS1='\[\e[0m\]12345' INPUTRC=/dev/null bash 
--norc --noprofile

        Note that the cursor appears at the end of the prompt, after
        the "5", as expected.
        
        $ env -i LC_CTYPE=en_US.UTF-8 PS1='\[\e[0m\]12345' INPUTRC=/dev/null 
bash --norc --noprofile

        Now the cursor appears in the middle of the prompt, after the
        "1".

-jim




reply via email to

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