Hello,

I have some questions regarding the status of UTF-8 handling in XFree.

Creating a fontset and using 'Xutf8DrawString' to display a string with
Western and Japanese Katakana works for me.

But since someone people tell stuff like "Please don't use
'Xutf8DrawString', it should've never added at all" and I'm also thinking
about compability with non-XFree86 systems, I've also tried to achieve the
same with 'XmbDrawString' and a locale of 'en_US.UTF-8' which succeeds to
display the ISO8859-1 characters (german umlaute in my case) but fails to
display the Katakana part.

Now here are my questions:

Xutf8DrawString specific:

o What is the current status of the utf8 functions?
o Are the UTF-8 functions available in a separate library for non-XFree86
  systems?
  (Are they, for example, related to a library named 'Xutf8', which is
  used in combination with fltk?)
 
XmbDrawString specific:

o Why does it fail to display the Katakana when Xutf8DrawString succeeds,
  which seems to indicate that my fontset is correct?
  (Btw. it's:
  -*-arial-medium-r-*-*-*-*-*-*-*-*-iso8859-1,
  -*-*-*-*-*-*-*-*-*-*-*-*-jisx0208.1983-0,
  -*-*-*-*-*-*-*-*-*-*-*-*-jisx0212.1990-0,
  -*-*-*-*-*-*-*-*-*-*-*-*-big5-0,
  -*-*-*-*-*-*-*-*-*-*-*-*-jisx0201.1976-0,
  -*-unifont-*-*-*-*-*-*-*-*-*-*-iso10646-1[0x300 0x400_0x500]
  and my LANG local is 'en_US.UTF-8')
o Does it fail because I need to update something? I.e. files in
  '/usr/X11R6/lib/X11/locale/en_US.UTF-8'? I'm currently using the
  XFree86 projects pre-compiled binaries of XFree86-4.3.0.
o Would it be okay to mess around with the LANG variable provided by
  the user before calling 'setlocale', ie. converting "en_US.ISO_8859-1" 
  into "en_US.UTF-8", or would the be bad design?

Ah, and I almost forgot this one:

o 'XOpenIM(display, NULL, NULL, NULL)' fails for LANG=en_US.UTF-8.

Bye,
  Mark

-- 
    TOAD -- A Simple and Powerful C++ GUI Toolkit for the X Window System
    /OO\    Check it out at http://www.mark13.de/toad/
__(/_--_\)__________________________ Mark-Andr� Hopf <[EMAIL PROTECTED]>
_______________________________________________
I18n mailing list
[EMAIL PROTECTED]
http://XFree86.Org/mailman/listinfo/i18n

-- 
    TOAD -- A Simple and Powerful C++ GUI Toolkit for the X Window System
    /OO\    Check it out at http://www.mark13.de/toad/
__(/_--_\)__________________________ Mark-Andr� Hopf <[EMAIL PROTECTED]>
_______________________________________________
Devel mailing list
[EMAIL PROTECTED]
http://XFree86.Org/mailman/listinfo/devel

Reply via email to