Re: German 'umlaute' in gnome(-terminal)

2003-02-20 Thread Ole Laursen
Johannes Rohr <[EMAIL PROTECTED]> writes:

> Ole Laursen <[EMAIL PROTECTED]> writes:

[...]

> > > GDM 2.4.x uses /etc/environment (not by sourcing it but through
> > > pam_env.so). I don't know about older versions, though.
> > 
> > Are you sure it works? If it worked, wouldn't GDM 2.4 speak the
> > language specified in /etc/environment?
> 
> The LANG setting from /etc/environment is used for the session, but
> unfortunately not for the GDM greeter, which is a seperate programme.

OK, you're sure. I didn't test it, just thought there might be a
problem.

> I don't know if the Greeter's inability to set the UI language could
> also be cured by adding an appriopriate file to /etc/pam.d, but
> possibly it doesn't even use pam as it doesn't conduct any
> authentication.
> 
> So here the easiest workaround is to add
> 
> set -a
> . /etc/environment
> set +a
> 
> to /usr/bin/gdm.
> 
> Unfortunately this is overwritten by any upgrade, so probably Sean
> should patch the file from debian/rules or better upstream should fix
> this.

Sean, are you reading this? :-)


-- 
Ole Laursen
http://www.cs.auc.dk/~olau/




Re: German 'umlaute' in gnome(-terminal)

2003-02-19 Thread Johannes Rohr
Ole Laursen <[EMAIL PROTECTED]> writes:


[...]


> > > It would also help if GDM sourced /etc/environment and used the settings
> > > there as defaults.
> > 
> > GDM 2.4.x uses /etc/environment (not by sourcing it but through
> > pam_env.so). I don't know about older versions, though.
> 
> Are you sure it works? If it worked, wouldn't GDM 2.4 speak the
> language specified in /etc/environment?

The LANG setting from /etc/environment is used for the session, but
unfortunately not for the GDM greeter, which is a seperate programme.

> It doesn't with the package
> from
> 
>   deb http://harshy.homelinux.org/files/debian ./

If it even doesn't work for the session, then possibly /etc/pam.d/gdm
is not present. This happened to me when I was using the sources from
Gustavo Noronha's backport. His package contained a file called
/etc/pam.d/gdm2 which was obviously ignored by gdm.

I don't know if the Greeter's inability to set the UI language could
also be cured by adding an appriopriate file to /etc/pam.d, but
possibly it doesn't even use pam as it doesn't conduct any
authentication.

So here the easiest workaround is to add

set -a
. /etc/environment
set +a

to /usr/bin/gdm.

Unfortunately this is overwritten by any upgrade, so probably Sean
should patch the file from debian/rules or better upstream should fix
this.

Johannes




Re: German 'umlaute' in gnome(-terminal)

2003-02-18 Thread Ole Laursen
Johannes Rohr <[EMAIL PROTECTED]> writes:

> Matt Brubeck <[EMAIL PROTECTED]> writes:
> 
> 
> [...]
> 
> 
> > It would also help if GDM sourced /etc/environment and used the settings
> > there as defaults.
> 
> GDM 2.4.x uses /etc/environment (not by sourcing it but through
> pam_env.so). I don't know about older versions, though.

Are you sure it works? If it worked, wouldn't GDM 2.4 speak the
language specified in /etc/environment? It doesn't with the package
from

  deb http://harshy.homelinux.org/files/debian ./

-- 
Ole Laursen
http://www.cs.auc.dk/~olau/




Re: German 'umlaute' in gnome(-terminal)

2003-02-17 Thread Johannes Rohr
Matt Brubeck <[EMAIL PROTECTED]> writes:


[...]


> It would also help if GDM sourced /etc/environment and used the settings
> there as defaults.

GDM 2.4.x uses /etc/environment (not by sourcing it but through
pam_env.so). I don't know about older versions, though.

Johannes

-- 
~/.signature under construction




Re: German 'umlaute' in gnome(-terminal)

2003-02-16 Thread Adrian 'Dagurashibanipal' von Bidder
On Sam, 2003-02-15 at 23:36, Thomas Mueller wrote:

> I don't know any internals - but gnome-session runs as my user, so isn't
> there a possibility to read my environment variables before executing it?
> 
> > It would also help if GDM sourced /etc/environment and used the settings
> > there as defaults.
> 
> That wouldn't change anything for me (I have root with LANG=C and my
> user, so I didn't touch /etc/environment), but for every installation
> with more users this would be a good idea I think.

[EMAIL PROTECTED]:~$ cat /etc/X11/Xsession.d/98includeprofile
[ -f ~/.bash_profile ] && . ~/.bash_profile
[EMAIL PROTECTED]:~$

Works fine provided your bash_profile does not output anything and is
not interactive (both should really be true - ssh and other things
probably would break, too).

cheers
-- vbi

-- 
Packages should build-depend on what they should build-depend.
-- Santiago Vila on debian-devel


signature.asc
Description: This is a digitally signed message part


Re: German 'umlaute' in gnome(-terminal)

2003-02-15 Thread Thomas Mueller
Hi Matt!

> > What exactly happens there? I found a new file ~/.gnome/gdm:
> > [session]
> > last=Gnome
> > lang=de_DE.ISO-8859-1
> 
> Perhaps this file (and the corresponding GDM 2.4 file in ~/.gnome2)
> should be added to the language-env tool.

After hours of searching I can really support that :-)

> Currently, language-env sets up the environment that your shell uses,
> which is why you see the correct locale from inside the terminal (once
> you have started a shell).  But gnome-session is started by GDM, not by
> your shell, and your gnome desktop is started by gnome-session.

I don't know any internals - but gnome-session runs as my user, so isn't
there a possibility to read my environment variables before executing it?

> It would also help if GDM sourced /etc/environment and used the settings
> there as defaults.

That wouldn't change anything for me (I have root with LANG=C and my
user, so I didn't touch /etc/environment), but for every installation
with more users this would be a good idea I think.


-- 
MfG Thomas Mueller - http://www.tmueller.com for pgp key (95702B3B)




Re: German 'umlaute' in gnome(-terminal)

2003-02-15 Thread Sebastian Rittau
On Sat, Feb 15, 2003 at 12:28:10PM +0100, Thomas Mueller wrote:

> I did a new install using sid and now I have several problems with my
> german environment.
> 
> I've used set-language-env from the Language-env package to set
> everything to german. That resulted in the following locale:
> 
> [EMAIL PROTECTED]
[...]
> 
> Gnome is in english but german characters display correct and I can
> enter them so this is no real problem (but a solution would be nice
> nevertheless).
> 
> A real problem is the gnome-terminal. I can't enter german characters
> and they are displayed as '?'.
> In the menubar Terminal -> Character Coding -> Current Locale is set to
> ANSI_X3.4-1968. When I change that manually to ISO-8859-15 characters
> display correct but I still can't enter them.

Where do you set the language? How do you open terminals? Do you use
gdm? What does "locale" output in the GNOME Terminal?

 - Sebastian




Re: German 'umlaute' in gnome(-terminal)

2003-02-15 Thread Matt Brubeck
On Feb 15, Thomas Mueller wrote:

> What exactly happens there? I found a new file ~/.gnome/gdm:
> [session]
> last=Gnome
> lang=de_DE.ISO-8859-1

Perhaps this file (and the corresponding GDM 2.4 file in ~/.gnome2)
should be added to the language-env tool.

Currently, language-env sets up the environment that your shell uses,
which is why you see the correct locale from inside the terminal (once
you have started a shell).  But gnome-session is started by GDM, not by
your shell, and your gnome desktop is started by gnome-session.

It would also help if GDM sourced /etc/environment and used the settings
there as defaults.




Re: German 'umlaute' in gnome(-terminal)

2003-02-15 Thread Thomas Mueller
Hi Matt!

> > I installed language-env and selected german everywhere, that's it -
> > I'm quite sure I didn't do more for my last installations (woody with
> > gnome 1.4).
> 
> How are you logging in to GNOME?  If you use GDM, you may need to choose
> a German locale from its "Language" menu before logging in.

Shame on me - that's it!

What exactly happens there? I found a new file ~/.gnome/gdm:
[session]
last=Gnome
lang=de_DE.ISO-8859-1

Where is my lang environment overwritten? In a gnome-terminal I still
have what I've set:
[EMAIL PROTECTED]:~$ echo $LANG
[EMAIL PROTECTED]
[EMAIL PROTECTED]:~$

Thanks and sorry to everyone who answered.


-- 
MfG Thomas Mueller - http://www.tmueller.com for pgp key (95702B3B)




Re: German 'umlaute' in gnome(-terminal)

2003-02-15 Thread Matt Brubeck
On Feb 15, Thomas Mueller wrote:

> I installed language-env and selected german everywhere, that's it -
> I'm quite sure I didn't do more for my last installations (woody with
> gnome 1.4).

How are you logging in to GNOME?  If you use GDM, you may need to choose
a German locale from its "Language" menu before logging in.





Re: German 'umlaute' in gnome(-terminal)

2003-02-15 Thread Thomas Mueller
Hi Havoc!

> > Gnome is in english but german characters display correct and I can
> > enter them so this is no real problem (but a solution would be nice
> > nevertheless).
> 
> GNOME certainly shouldn't be in English, it has lots of German
> translations.

Yes I saw that.

> > A real problem is the gnome-terminal. I can't enter german characters
> > and they are displayed as '?'.
> > In the menubar Terminal -> Character Coding -> Current Locale is set to
> > ANSI_X3.4-1968. When I change that manually to ISO-8859-15 characters
> > display correct but I still can't enter them.
> 
> ANSI-blahblah is the official name of ASCII. This means g-t is falling
> back to "C" locale.
> 
> Are you sure there isn't anything on stderr, such as "locale not
> supported by C library"?

Is stderr redirected to a file ?
In ~/.gnome-error there are three different entries when I start a
gnome-terminal:

Repeated 4x:
(gnome-terminal:5032): Gtk-WARNING **: Unable to locate theme engine in
module_path: "pixmap",

One:
Window manager warning: Window 0x2400810 (Matthias S) sets SM_CLIENT_ID
on itself, instead of on the WM_CLIENT_LEADER window as specified in the
ICCCM.

Repeated quite often:
** (gnome-terminal:5032): WARNING **: No handler for control sequence
`device-control-string' defined.

> The symptoms sound like setlocale() fails.

Meanwhile I tried setting LANG=de_DE.UTF-8 but no change.


-- 
MfG Thomas Mueller - http://www.tmueller.com for pgp key (95702B3B)




Re: German 'umlaute' in gnome(-terminal)

2003-02-15 Thread Havoc Pennington
On Sat, Feb 15, 2003 at 12:28:10PM +0100, Thomas Mueller wrote: 
> Gnome is in english but german characters display correct and I can
> enter them so this is no real problem (but a solution would be nice
> nevertheless).

GNOME certainly shouldn't be in English, it has lots of German
translations.

> A real problem is the gnome-terminal. I can't enter german characters
> and they are displayed as '?'.
> In the menubar Terminal -> Character Coding -> Current Locale is set to
> ANSI_X3.4-1968. When I change that manually to ISO-8859-15 characters
> display correct but I still can't enter them.

ANSI-blahblah is the official name of ASCII. This means g-t is falling
back to "C" locale.

Are you sure there isn't anything on stderr, such as "locale not
supported by C library"?

The symptoms sound like setlocale() fails.

Havoc




Re: German 'umlaute' in gnome(-terminal)

2003-02-15 Thread Thomas Mueller
Hi Christian!

Christian Marillat schrieb am Samstag, den 15. Februar 2003:

> > A real problem is the gnome-terminal. I can't enter german characters
> > and they are displayed as '?'.

[..]
> This work here :
> 
> http://marillat.free.fr/dists/gnome-terminal-umlaut.png
> 
> I think something is misconfigured.

What do I have to configure ?

This is a new installation I configured nearly nothing. I selected these
locales to be generated by package 'locales':

[EMAIL PROTECTED] ISO-8859-15
de_DE ISO-8859-1
de_DE.UTF-8 UTF-8
en_US ISO-8859-1

I installed language-env and selected german everywhere, that's it - I'm
quite sure I didn't do more for my last installations (woody with gnome
1.4).


-- 
MfG Thomas Mueller - http://www.tmueller.com for pgp key (95702B3B)




Re: German 'umlaute' in gnome(-terminal)

2003-02-15 Thread Thomas Mueller
Hi Jose!

> > > > A real problem is the gnome-terminal. I can't enter german characters
> > > > and they are displayed as '?'.

[..]
>   Have you tried to change the font. I can use all kind of dead letters
>   here (Spanish locales), even ü (u umlaut). I have only lost lately in
>   this type of font the EUR symbol, but I guess that's due to some
>   change in Xft.

This can't be the font because it works everywhere else I think?
Evolution, gedit, xterm, Xemacs, ... everything works as expected.

The automatically chosen locale ANSI_X3.4-1968 (= ASCII) is strange I
think, this probably leads to another font than every other software
uses?


-- 
MfG Thomas Mueller - http://www.tmueller.com for pgp key (95702B3B)




Re: German 'umlaute' in gnome(-terminal)

2003-02-15 Thread Christian Marillat
Thomas Mueller <[EMAIL PROTECTED]> writes:

> Hi,

Hi,

[...]

> A real problem is the gnome-terminal. I can't enter german characters
> and they are displayed as '?'.
> In the menubar Terminal -> Character Coding -> Current Locale is set to
> ANSI_X3.4-1968. When I change that manually to ISO-8859-15 characters
> display correct but I still can't enter them.

> Should I file a bugreport or is this my fault? Did I miss anything?

This work here :

http://marillat.free.fr/dists/gnome-terminal-umlaut.png

I think something is misconfigured.

Christian




Re: German 'umlaute' in gnome(-terminal)

2003-02-15 Thread Jose Carlos Garcia Sogo
El día 15 feb 2003, Thomas Mueller escribía:
> Hi Adrian!
> 
> > > A real problem is the gnome-terminal. I can't enter german characters
> > > and they are displayed as '?'.
> 
> I saw now they are sometimes displayed as unicode (?) too. Instead of
> 'ß' (hope this works for you) I get '\337'.
> 
> > > In the menubar Terminal -> Character Coding -> Current Locale is set to
> > > ANSI_X3.4-1968. When I change that manually to ISO-8859-15 characters
> > > display correct but I still can't enter them.
> > > 
> > > Should I file a bugreport or is this my fault? Did I miss anything?
> > 
> > Are you sure that it's a problem of gnome-terminal, and not a problem of
> > your bash/libreadline settings? .inputrc might sometimes play such
> > games.
> 
> I'm quite sure. Everything works fine except gnome-terminal.
> 
> > Do umlauts work on the text console?
> 
> Yes they work on the console. I've installed xterm now, everything works
> in a xterm too.

  Have you tried to change the font. I can use all kind of dead letters
  here (Spanish locales), even ü (u umlaut). I have only lost lately in
  this type of font the EUR symbol, but I guess that's due to some
  change in Xft.

-- 
  Jose Carlos Garcia Sogo
 [EMAIL PROTECTED]


pgpuGZhzfZeo6.pgp
Description: PGP signature


Re: German 'umlaute' in gnome(-terminal)

2003-02-15 Thread Thomas Mueller
Hi Adrian!

> > A real problem is the gnome-terminal. I can't enter german characters
> > and they are displayed as '?'.

I saw now they are sometimes displayed as unicode (?) too. Instead of
'ß' (hope this works for you) I get '\337'.

> > In the menubar Terminal -> Character Coding -> Current Locale is set to
> > ANSI_X3.4-1968. When I change that manually to ISO-8859-15 characters
> > display correct but I still can't enter them.
> > 
> > Should I file a bugreport or is this my fault? Did I miss anything?
> 
> Are you sure that it's a problem of gnome-terminal, and not a problem of
> your bash/libreadline settings? .inputrc might sometimes play such
> games.

I'm quite sure. Everything works fine except gnome-terminal.

> Do umlauts work on the text console?

Yes they work on the console. I've installed xterm now, everything works
in a xterm too.


-- 
MfG Thomas Mueller - http://www.tmueller.com for pgp key (95702B3B)




Re: German 'umlaute' in gnome(-terminal)

2003-02-15 Thread Adrian 'Dagurashibanipal' von Bidder
On Sam, 2003-02-15 at 12:28, Thomas Mueller wrote:

> A real problem is the gnome-terminal. I can't enter german characters
> and they are displayed as '?'.
> In the menubar Terminal -> Character Coding -> Current Locale is set to
> ANSI_X3.4-1968. When I change that manually to ISO-8859-15 characters
> display correct but I still can't enter them.
> 
> Should I file a bugreport or is this my fault? Did I miss anything?

Are you sure that it's a problem of gnome-terminal, and not a problem of
your bash/libreadline settings? .inputrc might sometimes play such
games.

Do umlauts work on the text console?

cheers
-- vbi

-- 
pub  1024D/92082481 2002-02-22 Adrian von Bidder 
 Key fingerprint = EFE3 96F4 18F5 8D65 8494  28FC 1438 5168 9208 2481


signature.asc
Description: This is a digitally signed message part