[PATCH:xwininfo 1/2] Handle non-latin-1 window names

Mark Kettenis mark.kettenis at xs4all.nl
Wed Jun 30 11:02:48 PDT 2010


> Date: Wed, 30 Jun 2010 09:38:47 -0700
> From: Alan Coopersmith <alan.coopersmith at oracle.com>
> 
> Mark Kettenis wrote:
> >> From: Alan Coopersmith <alan.coopersmith at oracle.com>
> >> Date: Tue, 29 Jun 2010 23:04:33 -0700
> >>
> >> Uses _NET_WM_NAME to get UTF-8 encoding, iconv to convert to current locale
> >> Warns that COMPOUND_TEXT WM_NAMEs aren't supported if _NET_WM_NAME isn't set
> >> Adds local atom caching code to dsimple.c and uses it in all three *.c
> > 
> > Sorry, but iconv isn't available everywhere; OpenBSD for example
> > doesn't have it.
> 
> So OpenBSD doesn't meet the Unix98 baseline we've been stating for a few
> years is the minimum requirement for X.Org?

Probably correct; we're close but don't have everything in there.
Solaris is probably the only system that fully meets that requirement;
Linux is probably close enough.

I think Unix98 as a minimum requirement is a bit too strict.  There is
a lot of stuff in there that's marked as XSI extension in the later
POSIX versions that are based on Unix98 (although it seems that POSIX
2008 made it mandatory).

> It wouldn't be hard to add an autoconf check and just leave OpenBSD users
> limited to ISO8859-1 window names, but I didn't think that would be needed.

You might need an autoconf check anyway, for systems that that have
iconv in a seperate library.

Anyway, it would be greatly appreciated if you could make the usage of
iconv optional.


More information about the xorg-devel mailing list