Locale problems on Solaris

Ben Lindstrom mouring at etoh.eviladmin.org
Wed Feb 27 04:49:46 EST 2002


In --current one should just be able to put in do_setup_env() a:

	read_environment_file(&env, &envsize, "/etc/default/init");

for 3.0.2 it would be do_child()

- Ben

On Tue, 26 Feb 2002, Daniel Bergman wrote:

>
> I've also experienced this which I solved by setting the locale variables
> in /etc/profile but I rather would like SSH to set the right locale for me.
>
> Regards,
> Daniel
>
> > Hi there.
> >
> > With OpenSSH 3.0.2p1 on Solaris, the locale does not appear to get set
> > correctly at login, as it does with, say telnet:
> >
> > /etc/default/init:
> >  TZ=GB
> >  CMASK=022
> >  LC_COLLATE=en_GB.ISO8859-1
> >  LC_CTYPE=en_GB.ISO8859-1
> >  LC_MESSAGES=C
> >  LC_MONETARY=en_GB.ISO8859-1
> >  LC_NUMERIC=en_GB.ISO8859-1
> >  LC_TIME=en_GB.ISO8859-1
> >
> > When logging in via SSH:
> >  scot /home/scot > locale
> >  LANG=
> >  LC_CTYPE="C"
> >  LC_NUMERIC="C"
> >  LC_TIME="C"
> >  LC_COLLATE="C"
> >  LC_MONETARY="C"
> >  LC_MESSAGES="C"
> >  LC_ALL=
> >
> > When logging in via telnet:
> >  scot /home/scot > locale
> >  LANG=
> >  LC_CTYPE=en_GB.ISO8859-1
> >  LC_NUMERIC=en_GB.ISO8859-1
> >  LC_TIME=en_GB.ISO8859-1
> >  LC_COLLATE=en_GB.ISO8859-1
> >  LC_MONETARY=en_GB.ISO8859-1
> >  LC_MESSAGES=C
> >  LC_ALL=
> >
> >
> > I'd expect the default locale to have been set I think.  Any ideas?
> >
> > Thanks
> >
> > Scot
> >
> >
> > _______________________________________________
> > openssh-unix-dev at mindrot.org mailing list
> > http://www.mindrot.org/mailman/listinfo/openssh-unix-dev
> >
> >
>
>
>
> --
> Daniel Bergman
> Phone: 08 - 55066265
> Mobile: 070 - 289 30 39
> Fax: 08 - 59827056
> Email: d-b at home.se
>




More information about the openssh-unix-dev mailing list