- Subject: Re: WJed key bindings and utf-8
- From: "John E. Davis" <davis@xxxxxxxxxxxxx>
- Date: Tue, 19 Apr 2005 16:10:01 -0400
SANGOI DINO <SANGOID@xxxxxxxxxxxxxxxxx> wrote:
>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
[...]
>So the question is: what is the correct way to handle this? should I encode
My feeling is that the slang2 parser should be tweaked so that "\xE0P"
remains a 2-byte sequence but treat strings such as "\x{E0}P" and
"\x{00E0}P" as having wide characters.
Does this sound like a reasonable proposal?
This would involve changing the code near line 213 of
slang/src/slmisc.c from
if ((isunicode == 0)
&& ((wch < 127)
|| (utf8_encode == 0)))
{
*s++ = (char) wch;
continue;
}
to
if (isunicode == 0)
{
*s++ = (char) wch;
continue;
}
Thanks,
--John
--------------------------
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]