- Subject: WJed key bindings and utf-8
- From: SANGOI DINO <SANGOID@xxxxxxxxxxxxxxxxx>
- Date: Tue, 19 Apr 2005 19:39:15 +0200
Hi,
While working on a UTF-8 enabled version of WJed (more on that on a separate
mail soon, I hope), a strange thing happened: cursor keys UP and DOWN
doesn't work on minibuffer!
To try it I'm setting JED_UTF8 environment variable.
After a bit of debugging, I found that the bindings:
definekey ("next_mini_command", "\xE0P", mini);
definekey ("prev_mini_command", "\xE0H", mini);
on mini.sl, got the char '\xE0' converted to utf8 sequence. Changing those
to:
definekey ("next_mini_command", "\xE0P"B, mini);
definekey ("prev_mini_command", "\xE0H"B, mini);
Works, but this works only on SLang 2 (if I remember correctly).
So the question is: what is the correct way to handle this? should I encode
strings recieved from keyboard as utf 8? Or should I use binary strings as
above?
Thanks,
Dino
PS: BTW, how difficult will be supporting files in UTF-16? Those are common
on Windoze. I haven't tried it myself, I'm just wondering it this can be
done...
--------------------------
To unsubscribe send email to <jed-users-request@xxxxxxxxxxx> with
the word "unsubscribe" in the message body.
Need help? Email <jed-users-owner@xxxxxxxxxxx>.
[2005 date index]
[2005 thread index]
[Thread Prev] [Thread Next]
[Date Prev] [Date Next]