[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Bug while locale in utf8
From: |
Stefan Monnier |
Subject: |
Re: Bug while locale in utf8 |
Date: |
Fri, 23 Sep 2005 12:25:22 -0400 |
User-agent: |
Gnus/5.11 (Gnus v5.11) Emacs/22.0.50 (gnu/linux) |
>> I don't understand enough about the auto-loading of the
>> tables to know why it works when utf-8 files containing
>> CJK characters are loaded, but not for utf-8 keyboard
>> input. But at least the above might give you a better work
>> around for your .emacs.
> On reading a file, utf-8-post-read-conversion is called and
> it (re)loads the tables if necessary. But, the decoding of
> keyboard input via XIM is done in handle_one_xevent of
> xterm.c, and I'm not sure we can call Lisp there. So, I
> dared not call post-read-conversion function there.
Indeed we can't use elisp from handle_one_xevent. We should probably
restructure this code so that the necessary decoding can be done later,
e.g. in read_char.
Stefan