bug-bash
[Top][All Lists]
Advanced

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

Re: Invisible characters in prompt with multi-byte support enabled


From: Thomas Dickey
Subject: Re: Invisible characters in prompt with multi-byte support enabled
Date: Tue, 12 Jul 2005 09:57:24 -0000
User-agent: tin/1.4.4-20000803 ("Vet for the Insane") (UNIX) (SunOS/5.8 (sun4u))

Alexander Becher <alex.muelleimer@onlinehome.de> wrote:
> Short version: bash-2.05b/lib/readline/display.c:update_line:1353
> calculates _rl_last_c_pos incorrectly if multibyte support is enabled
> and there are invisible characters in the line that include zero-width
> characters.

There's a similar problem with bash 3.0 - see

http://groups-beta.google.com/group/muc.lists.netbsd.users/browse_thread/thread/74cc6170139c4a9d/a8ea4643fdd0e00d?q=netbsd+termcap+bash&rnum=1&hl=en#a8ea4643fdd0e00d

I spent enough time analyzing it to see that it's in the same general area.
The logic in display.c seems to assume that all of the invisible characters
are in one chunk.

> I would have loved to include a fix, but that part of readline's code
> is incomprehensible to me (for the moment, at least).

;-)

-- 
Thomas E. Dickey
http://invisible-island.net
ftp://invisible-island.net




reply via email to

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