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
|