Red Hat Bugzilla – Bug 138960
CRM #370922: Problem w/ XmStringCreateLocalized() and UTF-8 encoding string
Last modified: 2007-11-30 17:07:05 EST
Client is having a problem w/ XmStringCreateLocalized( char *text )
being unable to display UTF-8 encoding string.
Action by: jantill
This should really be compiled as...
g++ -Wall -W -o main main.cpp -L/usr/X11R6/lib -lXp -lXm -lXpm -lXt
...but it still fails.
I can't see anything wrong with the code.
Created attachment 106553 [details]
*** Bug 138954 has been marked as a duplicate of this bug. ***
There are some relevant comments from me in bug 138954.
*** This bug has been marked as a duplicate of 139265 ***
The problem is that OpenMotif has no UTF-8 support. Please have a look at:
OpenMotif-2.3 will have UTF-8 support, but there is no development
schedule or release date, yet.
The next OpenMotif versions (2.2.4 and 2.2.5) are bugfix releases and
will have no UTF-8 support.
For japanese text, please try ja_JP.eucJP. This might work.
eucJP doesn't work; the customer's program always leads openmotif to
call XDrawString() rather than XmbDrawString() regardless of locale