bug-bash
[Top][All Lists]
Advanced

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

Cursor positioning in prompt is sometimes wrong, depending on locale and


From: Jim Paris
Subject: Cursor positioning in prompt is sometimes wrong, depending on locale and PS1
Date: Tue, 9 Jun 2009 18:00:05 -0400
User-agent: Mutt/1.5.18 (2008-05-17)

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 pilot 2.6.26-2-amd64 #1 SMP Fri Mar 27 04:02:59 UTC 2009 
x86_64 GNU/Linux
Machine Type: x86_64-pc-linux-gnu

Bash Version: 4.0
Patch Level: 24
Release Status: release

Description:

        The cursor positioning in the prompt is sometimes wrong,
        depending on the contents of PS1 and the locale.

Repeat-By:

        With this command, the cursor is positioned after the '5', as expected:

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


        With this command, the cursor is incorrectly positioned after the '1':

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


-jim




reply via email to

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