vile
[Top][All Lists]
Advanced

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

Re: [vile] vile-9.6j.patch.gz


From: Chris G
Subject: Re: [vile] vile-9.6j.patch.gz
Date: Thu, 27 Mar 2008 09:00:31 +0000
User-agent: Mutt/1.5.17 (2007-11-01)

On Wed, Mar 26, 2008 at 09:03:46PM -0400, Thomas Dickey wrote:
> On Wed, 26 Mar 2008, Thomas Dickey wrote:
>
>>> I see - can reproduce it here.  It looks as if vile's got confused at 
>>> some point (there are a half-dozen knots in display.c which I thought 
>>> were all aligned). It should show as \?A3 and track the cursor according 
>>> to that 4-column width.  The cursor is moving properly, but the display 
>>> isn't.
>>
>> This seems to fix it:
>>
>> --- display.c   2008/03/06 01:10:52     1.471
>> +++ display.c   2008/03/26 23:06:14
>> @@ -732,7 +732,7 @@
>>     if (w_val(wp, WMDLIST)) {
>>        rc = vtlistc(wp, src, limit);
>>     } else if (b_is_utfXX(wp->w_bufp)
>> -              && column_sizes(wp, src, limit, &rc) == COLS_UTF8) {
>> +              && column_sizes(wp, src, limit, &rc) >= COLS_8BIT) {
>>        rc = vtlistc(wp, src, limit);
>>     } else {
>>        rc = vtputc(wp, src, limit);
>
> I added a couple of related fixes, put a snapshot in
>
> ftp://invisible-island.net/temp/vile-9.6j2.tgz
>
OK, that behaves as you say it should (and basically as I expect) by
displaying \?A3 for the invalid pound signs.

It also highlights a problem with the XFCE Terminal which can't change
character set under user control.  The gnome-terminal can change at
user request and allowed me to test this easily by creating a file
with iso-8859-1 pound signs in it and then switching back to utf-8 to
see how it behaved.  So it's gnome-terminal for me from now on!  :-)

I'll keep running the 9.6j2 code and report any other glitches I come
across.

> (will be testing that further - but also want to get more info about
> the other bug report)
>
> -- 
> Thomas E. Dickey
> http://invisible-island.net
> ftp://invisible-island.net
>

-- 
Chris Green




reply via email to

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