bug-gnu-emacs
[Top][All Lists]
Advanced

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

Re: utf-8 input under X11


From: David Monniaux
Subject: Re: utf-8 input under X11
Date: Fri, 26 Oct 2001 15:48:18 +0200

Le Mercredi 24 Octobre 2001 11:59, Gerd Moellmann a écrit :

> Could you please apply this patch, and see if the abort is hit?

Emacs no longer segfaults, but lots of characters are still 
misinterpreted:
- OE, oe
- Euro sign
- some Russian letters (I temporarily switched my keyboard to Russian 
to test it), but not all of them (!)

> *** xterm.c.~1.650.4.4.~      Wed Oct 24 11:15:47 2001
> --- xterm.c   Wed Oct 24 11:55:42 2001
> ***************
> *** 10606,10615 ****
>                                                         modifiers);
>                             bufp->timestamp = event.xkey.time;
>                             bufp++;
>                           }
> -
> -                       count += nchars;
> -                       numchars -= nchars;
>
>                         if (keysym == NoSymbol)
>                           break;
> --- 10606,10616 ----
>                                                         modifiers);
>                             bufp->timestamp = event.xkey.time;
>                             bufp++;
> +                           ++count;
> +                           --numchars;
> +                           if (numchars < 0)
> +                             abort ();
>                           }
>
>                         if (keysym == NoSymbol)
>                           break;

-- 
David Monniaux            http://www.di.ens.fr/~monniaux
Laboratoire d'informatique de l'École Normale Supérieure,
Paris, France



reply via email to

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