Calling xterm -lc gives correct encoded terminal, while the entry "XTerm*locale: true" does not. Reproducible: Always Steps to Reproduce: 1. edit ~/.Xdefaults 2. add "XTerm*locale: true" 3. xrdb -remove; xrdb -merge ~/.Xdefaults 4. start xterm Actual Results: Xterms displays broken glyphs Expected Results: utf8 glyphs should be displayed properly, such as umlauts and cyrillic chars. This is probably a usage problem. Nevertheless, I found no dokumentation to do it correctly.
It seems to work here. Perhaps there was some other xrdb setting which you're relying upon which was deleted with the "xrdb -remove".
I use no other xrdb resource. My xterm should display the glyphs correctly after reboot, which it does not.
The output from appres XTerm env locale would be helpful in reconstructing your setup.
please reopen with info requested by Comment #3 and emerge --info too.
Created attachment 227805 [details] appres XTerm
Created attachment 227807 [details] env output
Created attachment 227809 [details] locale
Created attachment 227811 [details] emerge --info outpu
I also tried uxterm, but it didn't help.
reopen
thanks (will study this and see)
I still don't see it (on Debian/testing - I don't have GenToo). The two different ways of setting the value should be equivalent. On my setup, one sets "on" and the other sets "true". The value is tested in charproc.c, e.g., if (x_strcasecmp(xw->misc.locale_str, "TRUE") == 0 || x_strcasecmp(xw->misc.locale_str, "ON") == 0 || x_strcasecmp(xw->misc.locale_str, "YES") == 0 || x_strcasecmp(xw->misc.locale_str, "AUTO") == 0 || strcmp(xw->misc.locale_str, "1") == 0) { /* when true ... fully obeying LC_CTYPE locale */ xw->misc.callfilter = (Boolean) (is_utf8 ? 0 : 1); screen->utf8_mode = uAlways; I configured/compiled xterm using --enable-trace, and see that the two give the same result (will attach traces).
Created attachment 228159 [details] debugging trace from xterm, for the "xterm -lc" case
Created attachment 228161 [details] debugging trace from xterm for the xrdb case
The place to examine is around line 430 of each trace. That's where the locale_str value is seen, tested and used. I also checked that (for my system) that the glyphs render for values past 255. However, if your configuration does not have the ISO10646 fonts, then xterm may fallback to the "fixed" font, which lacks the glyphs. I see that the ebuild here http://sources.gentoo.org/viewcvs.py/gentoo-x86/x11-terms/xterm/xterm-256.ebuild?view=markup does mention media-fonts/font-misc-misc; however I'm uncertain whether that package contains the needed fonts.
What really confuses me is the fact, that I get it running properly calling 'xterm -lc'. Could this possibly be a bug in Gnome ?
I'm not sure. If you can configure xterm with the extra (--enable-trace) option, you can see the corresponding trace. If xterm is indeed getting the data from xrdb, that part of the trace would be the same, as I see in my own traces. But if xterm is not getting the data from xrdb, I don't know of a bug that would prevent this from working.
(In reply to comment #17) > I'm not sure. If you can configure xterm with the extra > (--enable-trace) option, you can see the corresponding trace. To the original reporter: You can do this easily by: EXTRA_ECONF="--enable-trace" emerge xterm