From: Beni C. <cb...@te...> - 2003-01-04 23:04:12
|
[New to the list, mlterm is generally great!-] I don't seem to get mlterm to read hebrew characters from my keyboard. I don't run any XIM servers, just plain xkb. xterm in utf-8 mode works perfectly. I have PC with RedHat 8.0 (XFree86 4.*) - my locale is en_US.utf-8. Display and cut/paste of hebrew work fine (including bidi). Is xkb known to work or not to work? I'm trying to debug it now but I don't understand yet what's happening. Seems that x_xic_get_utf8_str and friends do nothing useful because the input context pointer is NULL, because the code to XOpenIM is never reached, because... I'm very new to all input handling in X so I'm not sure how it should really work... For myself, I've fixed this with a dirty hack: I took, from latest xterm distribution, keysym2ucs.[hc] and xutf8.[hc] which implement a simulation of Xutf8LookupString using a lookup table (and ignoring the ic argument), and stuck a call into it instead of return 0 in x_xic_get_utf8_str when ic is NULL... mlterm works nicely for me now but I know this is not the Right Way because xterm itself doesn't use it (XFree86 has Xutf8LookupString, I actually had to disable the #ifndefs in these files to enable the table-based implementation despite this)... -- Beni Cherniavsky <cb...@tx...> |