Mailing List Archive


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

Re: [tlug] LC_CTYPE



-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On Fri, Mar 10, 2006 at 12:16:22PM +0100, David Stibbe wrote:

> 
> But, back to the core of my question, do you know if it is possible to
> set an environment variable like LC_CTYPE for KDE without using
> something like .bashrc or .bash_profile (or to get it to read my
> .xsession) ??

David, I missed the earlier part of this thread, so this answer may be
useless.  If you're running RH or a derivative, the variables would work 
if they were put in $HOME/.Xclients or .Xclients-defaults.

(This might be the case for other distros as well, but I remember
running into it with RH 7.x or so--I would boot into console, and
whatever window manager I used wouldn't read it in .xinitrc.)

I forget why this is--I think we had a thread on it many many years ago.


Another option, if you only want it for a few apps is to start the apps
with something like LC_CTYPE=ja_JP.eucJP firefox (or make an alias for
firefox, eg, in .bashrc alias firefox="LC_CTYPE=ja_JP.eucJP firefox" )

Yet another option is to make a lang.sh script, something like

LC_CTYPE=ja_JP.eucJP ${1+"$@"} &



Then, any app that you want to use the LC_CTYPE can be called with 
lang.sh <application>. (I think this option is better for someone like
me, who uses fluxbox where I either call apps from the command line or
have keybindings--then, it's easy to bind say, Mod4 f to lang.sh
firefox)


HTH


- -- 

Scott Robbins

PGP keyID EB3467D6
( 1B48 077D 66F6 9DB0 FDC2 A409 FA54 EB34 67D6 )
gpg --keyserver pgp.mit.edu --recv-keys EB3467D6

Willow: I'm a bloodsucking fiend! Look at my outfit!
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.2.1 (FreeBSD)

iD8DBQFEEWc5+lTVdes0Z9YRAi5dAKCimyi11AxXwl6FPxmm8UsCzshGWACfdFN9
avc5/q6yyVU37V9M6VmgVuU=
=DI8D
-----END PGP SIGNATURE-----


Home | Main Index | Thread Index

Home Page Mailing List Linux and Japan TLUG Members Links