Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 70376 - unicode_start problem with accented letters
Summary: unicode_start problem with accented letters
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Unspecified (show other bugs)
Hardware: x86 Linux
: High normal (vote)
Assignee: utf8 herd (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-11-07 13:07 UTC by Laurento Frittella (mrfree)
Modified: 2004-12-24 01:43 UTC (History)
1 user (show)

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


Attachments
patch for support encoding of unicode characters (unicode_start.patch,680 bytes, patch)
2004-11-23 05:05 UTC, Alexander Simonov
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Laurento Frittella (mrfree) 2004-11-07 13:07:31 UTC
In a unicode_start console session if I use accented letters (
Comment 1 Laurento Frittella (mrfree) 2004-11-07 13:07:31 UTC
In a unicode_start console session if I use accented letters (ìèéàù) I can delete prompt header characters in a number equal to number of accented letters used.

For example, if I use "normal" chars:

mrfree@thot mrfree $ qwerty

Using backspace I can delete obtain something like this:

mrfree@thot mrfree $


But if I use some accented letters I can use backspace to delete prompt header:

mrfree@thot mrfree $ ìùàìùà

I can obtain this:

mrfree@thot mrf


Exacly 6 chars of prompt!!!


After a unicode_stop this doesn't happen

Reproducible: Always
Steps to Reproduce:
1. unicode_start
2.
3.

Actual Results:  
I can delete portions of prompt header after use of accented letters

Expected Results:  
Hey prompt wouldn't have to be erasable ;)
Comment 2 Olivier Crete (RETIRED) gentoo-dev 2004-11-07 19:30:27 UTC
which package is that ?
Comment 3 Laurento Frittella (mrfree) 2004-11-10 01:50:39 UTC
Ops...

the package is sys-apps/kbd
(reported by "qpkg -f /usr/bin/unicode_start")
Comment 4 Alexander Simonov 2004-11-23 05:05:14 UTC
Created attachment 44552 [details, diff]
patch for support encoding of unicode characters

This patch fixing this problem and add new parametr for running unicode_start
The default incoding is iso-8859-1
Comment 5 Sergey Kuleshov (RETIRED) gentoo-dev 2004-11-23 05:35:18 UTC
Hm, from what I remember this is bug of bash. I have same issue, but if I run second bash instanse, or load a terminal in X the problem disapears.
Comment 6 Laurento Frittella (mrfree) 2004-11-24 00:23:38 UTC
I've tryed the patch but the problem remains :(

PS:
in your patch there is a missing space

if [-z "$3" ]   could be   if [ -z "$3" ] 
Comment 7 Björn Michaelsen 2004-11-29 16:21:37 UTC
Doesnt happen with bash3 and readline5 since they are unicode aware. Also check out:
http://gentoo-wiki.com/HOWTO_Make_your_system_use_unicode/utf-8
Comment 8 Laurento Frittella (mrfree) 2004-11-30 02:57:22 UTC
Thz,
Using bash3 and readline5 all works well ;)
Comment 9 Laurento Frittella (mrfree) 2004-12-24 01:43:38 UTC
Using bash3 and readline5 all works well ;)