NetBSD-Users archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: Setting keyboard layout on xterm



On Wed, Jun 29, 2022 at 05:56:09PM +0200, Martin Husemann wrote:
> On Wed, Jun 29, 2022 at 06:21:46PM +0000, Riza Dindir wrote:
> > I also changed the font for XTerm in the Xresources file, which uses
> > iso8859-9, but that does not do anything. Although the font changes,
> > the characters for that language can not be entered on xterm.
> > 
> > Is there a way to do that?
> 
> You need to set the environment variable LC_CTYPE to e.g. de_DE.ISO8859-15
> or de_DE.UTF-8 for german (the former giving you ISO 8859-15, the latter
> UTF8 unicode encoding), or tr_TR.ISO8859-9 or tr_TR.UTF-8 for turkish.
> 
> You can see all available locales in /usr/share/locale/.

just
	locale -a

is good enough.
 
> I don't know if the in-tree xterm supports unicode (I mostly use rxvt

NetBSD doesn't have any "in-tree" X applications (that's all from pkgsrc,
which is supposedly distinct from src).

> or urxvt from pkgsrc instead), but nowadays most people would prefer
> the UTF8 encoding. If you do not have legacy file names around, it doesn't
> matter which you pick.
> 
> Martin

-- 
Thomas E. Dickey <dickey%invisible-island.net@localhost>
https://invisible-island.net
ftp://ftp.invisible-island.net

Attachment: signature.asc
Description: PGP signature



Home | Main Index | Thread Index | Old Index