Stephen J. Turnbull wrote:
>>>>> "Ben" == Ben Wing
<ben(a)xemacs.org> writes:
Ben> actually, it doesn't look as bad as i thought. there is such
Ben> a thing as XwcDrawImageString, which is a standard part of x
Ben> windows and which accepts a Unicode string as well as an
Ben> XFontSet
Well, actually it accepts wide characters. I have no idea what it
does with them, though, and I believe the standard is "implementation
dependent". I'm pretty sure on SunOS with JLE 4.1.3 it was documented
to take constant-width EUC-JP.
The Xlib documentation says "in the form supported by the host C
language environment", which I take to mean "whatever the OS normally
uses for wchar_t".
If __STDC_ISO_10646__ is defined, then wchar_t is ISO-10646. Other
than that, I'm not aware of any standard mechanism to determine the
system's encoding of wide characters.
--
Glynn Clements <glynn(a)gclements.plus.com>