Re: Setting xterm to use utf8 by default in X11?
Re: Setting xterm to use utf8 by default in X11?
- Subject: Re: Setting xterm to use utf8 by default in X11?
- From: "Adam D. I. Kramer" <email@hidden>
- Date: Fri, 28 Mar 2008 13:33:46 -0700 (PDT)
Hi Harold,
This works great for setting the LANG environment variable to be
en_US.UTF-8 by default, but it is not actually causing the xterms to be run
in UTF-8 mode.
So now LANG is indeed UTF-8:
feta:adik> setenv | grep LANG
LANG=en_US.UTF-8
...but the xterm is not in UTF-8 mode:
feta:adik> locale
LANG=
LC_COLLATE="C"
LC_CTYPE="C"
(and more).
If I create a new xterm from the original xterm, the NEW one is launched in
UTF-8 mode (based on $LANG)...but that was all possible by putting "setenv
LANG" into my .cshrc. What I'm *really* hoping for is for command-N and the
default xterm to be launched in UTF-8 mode.
As an additional note, if the LANG variable is NOT set, then even running
xterm -u8 or +u8 does not launch an xterm in UTF-8 mode.
I'm using "X11.app 2.1.4 - (xorg-server 1.3.0-apple5)"...thanks very very
much for your help!
--Adam
On Fri, 28 Mar 2008, Harald Hanche-Olsen wrote:
+ "Adam D. I. Kramer" <email@hidden>:
setenv LANG en_US.UTF-8
...allows the CURRENT xterm to start a NEW xterm in utf8 mode, but putting
that command in my .cshrc doesn't seem sufficient to cause ALL new xterms to
be started in UTF8 mode. There is no /etc/locale.gen which would handle this
as on linux boxes, soooo...anyone know the answer?
Short answer: .MacOSX/environment.plist
See also: http://developer.apple.com/qa/qa2001/qa1067.html
There is a System Preference pane called RCEnvironment that lets you
edit this file if you prefer. Google should find it for you.
- Harald
_______________________________________________
Do not post admin requests to the list. They will be ignored.
X11-users mailing list (email@hidden)
This email sent to email@hidden