[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Prompt length calculation fails when UTF-8 is used within \[ \]
From: |
Chet Ramey |
Subject: |
Re: Prompt length calculation fails when UTF-8 is used within \[ \] |
Date: |
Fri, 24 Jul 2009 19:30:25 -0400 |
User-agent: |
Thunderbird 2.0.0.22 (Macintosh/20090605) |
Lasse Kärkkäinen wrote:
>> Can you reproduce this with bash-4.0 with all 24 patches applied? I
>> still have more testing to do, but I haven't been able to reproduce
>> it on my Mac OS X development machines.
>
> Dunno what was wrong, but redownloading the patches solved the patching
> issue.
>
> Compiled with all the patches applied (there were a few rejects, though)
> and the original bug still remains.
There should not have been any rejects -- there are not when I apply
them using `patch -p0'.
In any case, I was able to reproduce this on an Ubuntu system. It's a
hard problem: how to accurately calculate display position when
multibyte characters are present, but will not be sent to the display,
and the information about invisible sequences has been lost.
I believe I have a fix, but it will require considerable testing, and
will probably not appear until bash-4.1.
Chet
--
``The lyf so short, the craft so long to lerne.'' - Chaucer
Chet Ramey, ITS, CWRU address@hidden http://cnswww.cns.cwru.edu/~chet/