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: Gerd Moellmann
Subject: Re: utf-8 input under X11
Date: 24 Oct 2001 11:59:16 +0200
User-agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.1.50

David Monniaux <address@hidden> writes:

> Started Emacs, tried both, with same result (segfault):
> - hitting the EuroSign keysym using AltGr-E
> - hitting Multi_key E =
> (both those keysym sequences are decoded as the UTF-8 character for 
> the Euro sign).

Thanks, David.

> Starting program: /opt/emacs-21/bin/emacs -xrm "emacs.synchronous: 
> true"
> 
> Program received signal SIGSEGV, Segmentation fault.
> 0x081086be in kbd_buffer_get_event (kbp=0xbfffeb9c, 
> used_mouse_menu=0x0)
>     at keyboard.c:3713
> (gdb) bt
> #0  0x081086be in kbd_buffer_get_event (kbp=0xbfffeb9c, 
> used_mouse_menu=0x0)
>     at keyboard.c:3713

A Heisenbug?  It's somewhere else now than before.  Anyway...

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

*** 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;




reply via email to

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