PS1: wrong display of accentuate character with \w
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
bash (Ubuntu) |
Confirmed
|
Undecided
|
Unassigned |
Bug Description
An UTF-8 character after an Ascii character is misinterpreted. It's difficult to explain the trouble so I get some commands to actually see it. Feel free to improve my description.
This test case work on gnome-terminal and xterm only when it is sized with 80 characters long.
$ echo $PS1 # Default value
\[\e]0;\u@\h: \w\a\]$
$ temp_dirname1=
$ temp_dirname2=
$ temp_dirname3=
$ echo -e $temp_dirname1"
$ mkdir $temp_dirname1 $temp_dirname2 $temp_dirname3
$ cd $temp_dirname1 # Wrong display
$ cd $temp_dirname2 # Correct display
$ cd $temp_dirname3 # Neither completely correct display neither wrong display (there is one space left at the end of the line that doesn't exist)
ProblemType: Bug
DistroRelease: Ubuntu 13.10
Package: bash 4.2-5ubuntu3
ProcVersionSign
Uname: Linux 3.11.0-12-generic i686
ApportVersion: 2.12.5-0ubuntu2.1
Architecture: i386
Date: Mon Nov 4 15:04:59 2013
InstallationDate: Installed on 2013-04-22 (195 days ago)
InstallationMedia: Ubuntu 13.04 "Raring Ringtail" - Release i386 (20130420)
MarkForUpload: True
SourcePackage: bash
UpgradeStatus: Upgraded to saucy on 2013-09-06 (59 days ago)
I confirm this bug, using lxterminal on Ubuntu Precise.
I've added a screenshoot of the second example to make it more obvious.