bug-bash
[Top][All Lists]
Advanced

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

Re: UTF-8 line editing problems


From: Egmont Koblinger
Subject: Re: UTF-8 line editing problems
Date: Sun, 31 Oct 2004 21:48:47 +0100
User-agent: Mutt/1.5.6+20040722i

> Readline and bash have some troubles with line editing in UTF-8 mode.
> 
> [...]
> 
> However, I prefer having a blue prompt:
> PS1=$'\\[\E[1;34m\\]\\u@\\h:\\w\\$ \\[\E[0m\\]'
> This works perfectly in legacy 8-bit mode, but misbehaves when using UTF-8.
> Typing the same sequence ("á" leftarrow "í" leftarrow "ó") yields in "óíá"
> being displayed but the cursor incorrectly stands over "á".

I traced readline's behaviour to find where it behaves differently in the
two cases, for monochrome and for color prompts. This lead to a patch that
seems to fix the problem for me. It should be used together with the
mentioned SUSE patch, I didn't test it on its own. See attachment...


bye,
Egmont

Attachment: utf8-with-invisible-characters-in-prompt.patch
Description: Text document


reply via email to

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