Bug 138960 (IT_54131) - CRM #370922: Problem w/ XmStringCreateLocalized() and UTF-8 encoding string
Summary: CRM #370922: Problem w/ XmStringCreateLocalized() and UTF-8 encoding string
Keywords:
Status: CLOSED WONTFIX
Alias: IT_54131
Product: Red Hat Enterprise Linux 3
Classification: Red Hat
Component: openmotif
Version: 3.0
Hardware: All
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Thomas Woerner
QA Contact:
URL:
Whiteboard:
: 138954 (view as bug list)
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2004-11-12 05:25 UTC by James Antill
Modified: 2007-11-30 22:07 UTC (History)
2 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2005-03-13 21:33:56 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)
test code (1.14 KB, text/plain)
2004-11-12 05:27 UTC, James Antill
no flags Details

Description James Antill 2004-11-12 05:25:37 UTC
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
-lXext -lX11

...but it still fails.
 I can't see anything wrong with the code.

Comment 1 James Antill 2004-11-12 05:27:30 UTC
Created attachment 106553 [details]
test code

Comment 2 Havoc Pennington 2004-11-18 20:14:02 UTC
*** Bug 138954 has been marked as a duplicate of this bug. ***

Comment 3 Owen Taylor 2004-11-18 20:32:23 UTC
There are some relevant comments from me in bug 138954.


Comment 5 Marty Wesley 2004-12-01 15:03:19 UTC

*** This bug has been marked as a duplicate of 139265 ***

Comment 10 Thomas Woerner 2004-12-07 15:03:01 UTC
The problem is that OpenMotif has no UTF-8 support. Please have a look at:

http://www.openmotif.org/index.php?module=pagemaster&PAGE_user_op=view_page&PAGE_id=29&MMN_position=40:3
and
http://www.motifzone.net/forum/viewtopic.php?t=3097

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.

Comment 11 Havoc Pennington 2004-12-08 01:32:01 UTC
eucJP doesn't work; the customer's program always leads openmotif to
call XDrawString() rather than XmbDrawString() regardless of locale
encoding.


Note You need to log in before you can comment on or make changes to this bug.