Re: a bug in encoding.c in Screen 4.0.2

Juergen Weigert <[email protected]> Mon, 25 Sep 2006 13:54:34 +0200
Newsgroups gmane.comp.gnu.screen
Message-ID <20060925115434.GB4203@faui40p>
Thanks,

added as 
https://savannah.gnu.org/bugs/index.php?17842

        cheers,
                Jw.

On Sep 23, 06 22:28:49 +0900, Hiroaki Sengoku wrote:
> Hi,
> 
> First of all, let me express my appreciation of the great software GNU
> Screen.  I can't do any work without it.
> 
> I've found a bug in the Screen 4.0.2 (latest ?): Run screen in SJIS
> mode, and use eucJP in the window, then a extra 0x8E will be inserted
> before every character.
> 
> I described the detail of the bug in my blog:
> 
>   http://blog.gcd.org/archives/50663205.html
> 
> Unfortunately it was written in Japanese, and I'm sorry for your
> inconvenience.  I hope some of developers of Screen can read Japanese.
> 
> The patch to fix the bug follows:
> 
> --- encoding.c.org	Mon Sep  8 23:25:23 2003
> +++ encoding.c	Mon Aug 28 18:11:57 2006
> @@ -1151,6 +1151,7 @@
>  	      *statep = c;
>  	      return -1;
>  	    }
> +	  if (!(c & 0x80)) return c;
>  	  return c | (KANA << 16);
>  	}
>        t = c;
> 
> If it was a known bug, and already fixed, please ignore this mail.
> I shall be very happy if this mail is a little help.
> 
> 
> #9291.
> http://www.gcd.org/sengoku/		Hiroaki Sengoku <[email protected]>
> 
> 
> _______________________________________________
> screen-devel mailing list
> [email protected]
> http://lists.gnu.org/mailman/listinfo/screen-devel

-- 
 o \  Juergen Weigert      unix-software __/ _=======.=======_     
<V> | [email protected]         creator    __/        _---|____________\/    
 \  |            0179/2069677      __/          (____/            /\
(/) | ____________________________/              _/ \_ vim:set sw=2 wm=8