[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
bug#11138: 23.3; on Windows, message-box does not display line breaks in
bug#11138: 23.3; on Windows, message-box does not display line breaks in the message
Sun, 01 Apr 2012 19:58:43 +0300
> From: Juanma Barranquero <address@hidden>
> Date: Sat, 31 Mar 2012 23:36:01 +0200
> Cc: Drew Adams <address@hidden>, address@hidden, address@hidden
> On Sat, Mar 31, 2012 at 20:06, Eli Zaretskii <address@hidden> wrote:
> > The Windows port doesn't really have an implementation of a message
> > box, it just pops up a menu. And in a menu, each item is one line.
> And some checking for excessive length is missing, BTW:
> emacs -Q
> M-: (message-box (make-string (/ most-positive-fixnum 2) ?a) "") <RETURN>
> Program received signal SIGSEGV, Segmentation fault.
> 0x754f8dd2 in strcat () from C:\Windows\syswow64\msvcrt.dll
> (gdb) bt
> #0 0x754f8dd2 in strcat () from C:\Windows\syswow64\msvcrt.dll
> #1 0x64c9000c in ?? ()
> #2 0x012b68f4 in fill_in_menu (menu=0x37640627, wv=0x9f1740) at
This crash should be fixed in trunk revision 107723. Now even your
crazy test case doesn't crash, just says that it ran out of memory
after a while (kids, don't try that at home).
Btw, it looks like MS-Windows menus cannot have strings longer than
64K, although I cannot find this documented anywhere.
|[Prev in Thread]
||[Next in Thread]|
- bug#11138: 23.3; on Windows, message-box does not display line breaks in the message,
Eli Zaretskii <=