[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
bug#17909: 24.4.50; #'read-char fails with non-ASCII characters on the T
From: |
Stefan Monnier |
Subject: |
bug#17909: 24.4.50; #'read-char fails with non-ASCII characters on the TTY |
Date: |
Thu, 03 Jul 2014 12:30:09 -0400 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/24.4.50 (gnu/linux) |
tags 17909 notabug
thanks
>> From NEWS:
> * Incompatible Lisp Changes in Emacs 24.4
> ** `read-event' does not return decoded chars in ttys any more.
> As was the case in Emacs 22 and before, the decoding of terminal
> input, according to `keyboard-coding-system', is not performed in
> `read-event' any more. But unlike in Emacs 22, this decoding is still
> done before `input-decode-map', `function-key-map', etc.
Oops, indeed, the above text is incorrect. Whether the decoding is done
or not depends on the value of the `inherit-input-method' argument.
IOW, use (read-char nil t). Note that in many cases, `read-key' is
a better choice than read-char.
I changed etc/NEWS accordingly.
Stefan