Unicode characters are handled uncorrectly
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
bash (Ubuntu) |
Incomplete
|
Low
|
Unassigned |
Bug Description
Binary package hint: gnome-terminal
Steps to reproduce:
1. Start gnome-terminal.
2. cd /tmp
3. mkdir "some unicode directory name of length N" (e.g. mkdir "αβγ", N=3)
4. cd "this directory"
5. Type some command, that don't fit in one terminal line, but only fits in two: (e.g.
echo "abcd"|
6. press 'up arrow' key to bring the command back again.
7. press 'left arrow' and wait for the cursor to appear in the middle of the first line.
8. Now either:
Press HOME - the cursor will fall so many symbol positions beyong the line beginning as many Grecian Unicode letters there are: N.
Or:
Try to set the cursor at the end of first line by pressing right arrow - you will not be able to locate the last N characters.
If you now try to edit the comand, there will be some mess.
The same has been tested with Cyrrilics Unicode symbols.
The effect with more exotic symbols is even more powerful: try "ॣय़" as directory name.
It seems that Gnome-terminal uses some unicode-unaware function to calculate strings length.
The issue is rather unpleasant, because localized Ubuntu versions use many directories with Unicode leters in names. E.G. Desktop is "Рабочий стол" in Russian localization.
*******
Description: Ubuntu 8.10
Release: 8.10
x86_64 distributive
Gnome terminal version from "apt-cache policy gnome-terminal"
2.24.1.1-0ubuntu1
ProblemType: Bug
Architecture: amd64
DistroRelease: Ubuntu 8.10
ExecutablePath: /usr/bin/
NonfreeKernelMo
Package: gnome-terminal 2.24.1.1-0ubuntu1
ProcEnviron:
PATH=/
LANG=ru_RU.UTF-8
SHELL=/bin/bash
SourcePackage: gnome-terminal
Uname: Linux 2.6.27-9-generic x86_64
Changed in cl-readline (Ubuntu): | |
assignee: | Ubuntu Desktop Bugs (desktop-bugs) → nobody |
do you get the same with terminator (terminal emulator)? this is probably a vte issue rather than a gnome-terminal one.