Bug 4282 - Xutf8TextListToTextProperty Conversion error for fr_FR@euro locale
Summary: Xutf8TextListToTextProperty Conversion error for fr_FR@euro locale
Status: RESOLVED WORKSFORME
Alias: None
Product: xorg
Classification: Unclassified
Component: Lib/Xt (show other bugs)
Version: 6.8.2
Hardware: Other other
: high normal
Assignee: Xorg Project Team
QA Contact: Xorg Project Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-08-28 11:02 UTC by Samuel Thibault
Modified: 2011-09-26 02:01 UTC (History)
0 users

See Also:
i915 platform:
i915 features:


Attachments
testcase (899 bytes, text/plain)
2005-08-28 11:03 UTC, Samuel Thibault
no flags Details

Description Samuel Thibault 2005-08-28 11:02:13 UTC
Hi,

Attached is a program that shows a strange behavior of
Xutf8TextListToTextProperty when having opened an Xt application with
LANG=fr_FR@euro or LANG=fr_FR.ISO-8859-15 (both use latin9 encoding):

'abé' -> 'é' f5 8 4 (2,'')

More generally, if the string is not ascii-only, only non-ascii characters get
translated, while ascii characters seem to be replaced by defaultstring.

If I remove XtSetLanguageProc() or replace XtVaOpenApplication() by
XOpenDisplay(), things work.  Using other locales like fr_FR (latin1) or
fr_FR.UTF-8 works correctly.

This is debian unstable's 6.8.2.dfsg.1-5 version.

Regards,
Samuel
Comment 1 Samuel Thibault 2005-08-28 11:03:33 UTC
Created attachment 3087 [details]
testcase

This is the testcase. Compile with -lX11 -lXt.
Comment 2 Samuel Thibault 2005-08-31 12:29:45 UTC
BTW, there are aliases like this: de_BE.ISO_8859-15:                              de_BE.ISO8859-15 for de_*, but not for fr_*. There probably should be. Not sure it really is related, though.  BTW, the euro symbol (¤) is properly pasted, so locales work at least a bit. 
Comment 3 Samuel Thibault 2005-10-29 05:58:54 UTC
Hi,  Anything new about this? Were you able to reproduce the testcase?  Regards, Samuel 
Comment 4 Alan Coopersmith 2005-11-09 10:02:16 UTC
Reassigning to Xorg since you said you were using Xorg 6.8.2, not the old
xlibs experimental tree.
Comment 5 Daniel Stone 2007-02-27 01:27:45 UTC
Sorry about the phenomenal bug spam, guys.  Adding xorg-team@ to the QA contact so bugs don't get lost in future.
Comment 6 Jeremy Huddleston Sequoia 2011-09-26 02:01:18 UTC
No response in the better half of a decade.  Closing.


Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.