[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] [PATCH] Cocoa: fix crash when pressing dead keys in the mon
From: |
Joachim Henke |
Subject: |
[Qemu-devel] [PATCH] Cocoa: fix crash when pressing dead keys in the monitor |
Date: |
23 May 2006 15:08 UT |
Concerning the Cocoa front-end there is a bug, when typing in the
monitor and pressing a dead key. QEMU quits, and all unsaved data in
the guest os is lost:
qemu[193] Exception raised during posting of notification. Ignored.
exception: *** -[NSCFString characterAtIndex:]: Range or index out of
bounds
[event characters] returns an empty string for dead keys; so calling
[[event characters] characterAtIndex:0] will raise an
NSRangeException that crashes qemu. The attached patch fixes this
bug, and it also adds support for the keys Home, End, and Delete in
the monitor.
--
Joachim Henke
http://he-jo.net/
cocoa-monitor.diff
Description: Binary data