vile
[Top][All Lists]
Advanced

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

Re: [vile] Vile confused about encoding-related modes after suspend/resu


From: Thomas Dickey
Subject: Re: [vile] Vile confused about encoding-related modes after suspend/resume
Date: Tue, 19 Aug 2008 16:21:23 -0400
User-agent: Mutt/1.5.18 (2008-05-17)

On Tue, Aug 19, 2008 at 10:25:12PM +0300, Jānis Rūcis wrote:
> Hi,
> 
> After suspending Vile with ^Z and subsequently resuming it from the
> shell with "fg", any UTF-8 characters are first displayed as random
> ASCII characters and later (after a redraw-display) as if
> unicode-to-hex mode had been set.  Additionally, entering the same
> characters in the same buffer results in each _byte_ of the characters
> being displayed using hexadecimal codes.

:-(

It's relatively simple to fix (though it's in an area where the different
I/O drivers may differ - long story - so I'll test more):

RCS file: RCS/spawn.c,v
retrieving revision 1.200
diff -u -r1.200 spawn.c
--- spawn.c     2008/08/12 21:27:21     1.200 
+++ spawn.c     2008/08/19 20:17:58 
@@ -154,6 +154,8 @@ 
 #endif
     term.openup();
     term.unclean();
+ 
+    term.open(); 
     term.kopen();
     sgarbf = TRUE;
     return AfterShell();
@@ -258,6 +260,7 @@ 
     TRACE(("entering rtfrmshell...\n"));
     endofDisplay();
     term.openup();
+    term.open(); 
     term.kopen();
     term.unclean();
     sgarbf = TRUE;
@@ -441,6 +444,7 @@ 
     w32_keybrd_reopen(pressret);
 #else
     system(line);
+    term.open(); 
     term.kopen();
     /* wait for return here if we are interactive */
     if (pressret) {


-- 
Thomas E. Dickey <address@hidden>
http://invisible-island.net
ftp://invisible-island.net

Attachment: signature.asc
Description: Digital signature


reply via email to

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