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.
Created attachment 3087 [details]
This is the testcase. Compile with -lX11 -lXt.
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.
Hi, Anything new about this? Were you able to reproduce the testcase? Regards, Samuel
Reassigning to Xorg since you said you were using Xorg 6.8.2, not the old
xlibs experimental tree.
Sorry about the phenomenal bug spam, guys. Adding xorg-team@ to the QA contact so bugs don't get lost in future.
No response in the better half of a decade. Closing.