Commit d6169680 authored by Jason Rumney's avatar Jason Rumney
Browse files

(handle_one_xevent): Revert to counting chars not bytes.

(XTread_socket): Clarify what return value is counting in comment.
parent 5ba43af2
2008-01-17 Jason Rumney <>
* xterm.c (handle_one_xevent): Revert to counting chars not bytes.
* w32term.c (w32_read_socket) <WM_CHAR>: Decode characters outside
the unicode range available in MULE by locale-coding-system.
Improve dbcs lead byte detection. Set event timestamp and modifiers
......@@ -6488,9 +6488,7 @@ handle_one_xevent (dpyinfo, eventp, finish, hold_quit)
kbd_buffer_store_event_hold (&, hold_quit);
/* Previous code updated count by nchars rather than nbytes,
but that seems bogus to me. ++kfs */
count += nbytes;
count += nchars; = NO_EVENT; /* Already stored above. */
......@@ -6989,7 +6987,9 @@ x_dispatch_event (event, display)
We return as soon as there are no more events to be read.
We return the number of characters stored into the buffer,
thus pretending to be `read'.
thus pretending to be `read' (except the characters we store
in the keyboard buffer can be multibyte, so are not necessarily
C chars).
EXPECTED is nonzero if the caller knows input is available. */
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment