> Date: Wed, 8 Dec 2010 22:31:37 +0100
> From: Matthieu Herrb <[email protected]>
>
> + /*
> + * There is no standard way to detect UTF-8 capabilities of a
> + * given terminal, but this gets pretty close as a good heuristic.
> + */
Actually, there is a somewhat better way to do this. GCC does
something like this:
const char *encoding;
encoding = nl_langinfo(CODESET);
if (encoding != NULL
&& (!strcasecmp(encoding, "utf-8")
|| !strcasecmp(encoding, "utf8")))
{
If you ask me, this is all a bi silly though. I think xinput should
simply only use ASCII.
_______________________________________________
[email protected]: X.Org development
Archives: http://lists.x.org/archives/xorg-devel
Info: http://lists.x.org/mailman/listinfo/xorg-devel