Re: Unicode in Konsole

2004-08-20 Thread Peter Clark
On Thursday 19 August 2004 20:37, Hendrik Sattler wrote:
> >   Unfortunately, even after restarting X, this did not work. (Since I
> > already had an appropriate /etc/environment file, I substituted that
> > instead of one in $HOME.)
>
> Strange, because this works here just fine with Debian Sarge.
> Create a file ("touch /xsession-test") in that script and see if it gets
> executed...

 Problem solved: I took a closer look at /etc/environment and realized that it 
didn't properly export the $LANG variable. Since $LANG is also set 
in /etc/sysconfig/i18n, I got it after the fact, so to speak. Stupid 
oversight, but everything works fine now, thanks for your help.
 :Peter




Re: Unicode in Konsole

2004-08-19 Thread Nathaniel W. Turner
On Wednesday 18 August 2004 01:42 pm, Peter Clark wrote:
> Then I discovered by accident today that if I start Konsole from
> Konsole, Unicode worked, without changing any other settings.

I noticed that kdm 3.3 has a regression where /etc/environment is not sourced 
anymore.  I suppose one of us should file a bug on it.

-- 
Nathaniel W. Turner
http://houseofnate.net/


pgpJqbcWvgQZT.pgp
Description: signature


Re: Unicode in Konsole

2004-08-19 Thread Hendrik Sattler
Am Donnerstag, 19. August 2004 06:34 schrieb Peter Clark:
>   Unfortunately, even after restarting X, this did not work. (Since I
> already had an appropriate /etc/environment file, I substituted that
> instead of one in $HOME.)

Strange, because this works here just fine with Debian Sarge.
Create a file ("touch /xsession-test") in that script and see if it gets 
executed...

> I also tried to make a menu entry with 
> 'LANG=en_US.UTF-8 konsole' per Frans Pop's suggestion, but that also did
> not work.

That's only going to work if you run this with a shell prefixed:
/bin/bash -c "LC_ALL=C konsole"

But doing this for every such program is just a bad hack.

HS

-- 
Mein GPG-Key ist auf meiner Homepage verfügbar: http://www.hendrik-sattler.de
oder über pgp.net

PingoS - Linux-User helfen Schulen: http://www.pingos.org


pgpQgDOI35nEA.pgp
Description: signature


Re: Unicode in Konsole

2004-08-18 Thread Peter Clark
On Wednesday 18 August 2004 22:22, Hendrik Sattler wrote:
> You have to set the environment variable _before_ starting KDE. Sadly,
> Debian does not do this. However, you can manually do it:
> $ cat /etc/X11/Xsession.d/10local_userenv
> USERENVFILE=$HOME/.environment
> if [ -f $USERENVFILE ]; then
>     source $USERENVFILE;
> fi
>
> also source this file where you normally write your environment stuff (e.g.
> ~/.bashrc).
> Now set the environment in ~/.environment and your problem is gone. As
> already stated here, KDE3.3 will make this a bit easier (maybe they finally
> realized the problem).

Unfortunately, even after restarting X, this did not work. (Since I 
already 
had an appropriate /etc/environment file, I substituted that instead of one 
in $HOME.) I also tried to make a menu entry with 'LANG=en_US.UTF-8 konsole' 
per Frans Pop's suggestion, but that also did not work.
What does KDE3.3 do differently? I'm planning on upgrading in the next 
few 
days, so if it works there, I can wait a bit.
Thanks,
:Peter




Re: Unicode in Konsole

2004-08-18 Thread Frans Pop
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

On Wednesday 18 August 2004 19:42, Peter Clark wrote:
Try creating a menu item with 'LANG=ll_CC.UTF-8 konsole' as command.

Cheers,
FJP
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.2.1 (GNU/Linux)

iD8DBQFBI6Szgm/Kwh6ICoQRAkWuAKCP334r5uOWRCivrZCq37Ys8uC4SACgiHTm
++IRQ/fOQ9LG21MYi7mo20M=
=vhSn
-END PGP SIGNATURE-




Re: Unicode in Konsole

2004-08-18 Thread Hendrik Sattler
Am Mittwoch, 18. August 2004 19:42 schrieb Peter Clark:
>   I'm scratching my head over this one: I'd set my console environment to
> UTF-8, but it didn't show up correctly in Konsole. Instead of Unicode
> characters, I got a lot of two-byte characters, like Á¶ and all that. I was
> using a Unicode-capable font, and everything should have worked fine, but
> didn't. Then I discovered by accident today that if I start Konsole from
> Konsole, Unicode worked, without changing any other settings. That is, I
> can have two Konsole windows open, the second started from the command line
> of the first. The first is unable to display Unicode, while the second
> does. 'ps ax' shows that both instances were started identically, i.e., not
> by kdeinit. (The first one is launched by clicking on an icon in a
> SuperKaramba theme, if that somehow makes a difference, although launching
> it through Alt-F2 or K-Menu->System->Konsole still does not display
> Unicode.)
>   So, how can I get Konsole to display Unicode without having to launch a
> second instance and close the first?

You have to set the environment variable _before_ starting KDE. Sadly, Debian 
does not do this. However, you can manually do it:
$ cat /etc/X11/Xsession.d/10local_userenv
USERENVFILE=$HOME/.environment
if [ -f $USERENVFILE ]; then
source $USERENVFILE;
fi

also source this file where you normally write your environment stuff (e.g. 
~/.bashrc).
Now set the environment in ~/.environment and your problem is gone. As already 
stated here, KDE3.3 will make this a bit easier (maybe they finally realized 
the problem).

HS

-- 
Mein GPG-Key ist auf meiner Homepage verfügbar: http://www.hendrik-sattler.de
oder über pgp.net

PingoS - Linux-User helfen Schulen: http://www.pingos.org


pgpCTYynSe7l9.pgp
Description: signature