How can the character set for popup menus be controlled in xterm

0

Somewhere along the way I've changed a setting that has caused the popup windows in xterm to be displayed in Greek characters. The text in the main window is fine, its just the popup windows that are in Greek. How can I change back to using English characters in the popups?

B.A.Cooper

Posted 2017-12-22T21:29:30.147

Reputation: 1

Thomas, Thanks for your response. :) Sorry to say I'm not xterm-literate so I'm not clear on how to try what you have mentioned.

I'm running on linux and the output of the "locale" command is this :

LANG=C LC_CTYPE="C" LC_NUMERIC="C" LC_TIME="C" LC_COLLATE="C" LC_MONETARY="C" LC_MESSAGES="C" LC_PAPER="C" LC_NAME="C" LC_ADDRESS="C" LC_TELEPHONE="C" LC_MEASUREMENT="C" LC_IDENTIFICATION="C" LC_ALL= – B.A.Cooper – 2017-12-27T16:10:21.623

Here's the output from xrdb -query: $ xrdb -query Scrollbar.JumpCursor: True XTerm.VT100.geometry: 120x30 XTermbackground: blue XTermforeground: yellow xtermloginShell: true xtermfaceName: Courrier XTermgeometry: 120x60-0+0 XTermfont: -adobe-symbol-medium-r-normal--10-100-75-75-p-61-adobe-fontspecific – B.A.Cooper – 2017-12-28T21:24:22.820

Here's the output from xrdb -query:

Scrollbar.JumpCursor: True XTerm.VT100.geometry: 120x30 XTermbackground: blue XTermforeground: yellow xtermloginShell: true xtermfaceName: Courrier XTermgeometry: 120x60-0+0 XTermfont: -adobe-symbol-medium-r-normal--10-100-75-75-p-61-adobe-fontspecific

Nothing stuck out to me. Did find one thing that may be a clue. Running as "xterm -class UXTerm" does not have the problem. – B.A.Cooper – 2017-12-28T21:31:11.420

Answers

0

It should "just work", since this is not a new problem (see xterm FAQ The first popup menu is very slow). xterm has a resource setting which tells it what the locale should be when initializing the menus:

menuLocale (class MenuLocale)
Specify the locale used for character-set computations when loading the popup menus. Use this to improve initialization performance of the Athena popup menus, which may load unnecessary (and very large) fonts, e.g., in a locale having UTF-8 encoding. The default is "C" (POSIX).

To use the current locale (only useful if you have localized the resource settings for the menu entries), set the resource to an empty string.

Possibly some packager overrode that, or there is some obscure configuration issue to be resolved.

If you're using the POSIX ("C") locale, then it does not seem likely that the X library would search for other fonts. But if you have some resource-setting for fonts (seen with appres XTerm, or xrdb -query), then that could be the source of the problem. I suppose it is also possible to have some mis-encoded font (but that seems unlikely).

Thomas Dickey

Posted 2017-12-22T21:29:30.147

Reputation: 6 891