support of locale

Cynthia K MULLIS Cynthia.K.Mullis at state.or.us
Wed Jan 24 04:44:01 EST 2007


When I ssh to a server, the locale information is set to "C" regardless
of the settings in the /etc/default/init. 
 
For example:
 
root at server: />locale
LANG=
LC_CTYPE="C"
LC_NUMERIC="C"
LC_TIME="C"
LC_COLLATE="C"
LC_MONETARY="C"
LC_MESSAGES="C"
LC_ALL=
 
root at server: />cat /etc/default/init
#ident  "@(#)init.dfl   1.6     00/05/27 SMI"
#
# This file is /etc/default/init.  /etc/TIMEZONE is a symlink to this
file.
# This file looks like a shell script, but it is not.  To maintain
# compatibility with old versions of /etc/TIMEZONE, some shell
constructs
# (i.e., export commands) are allowed in this file, but are ignored.
#
# Lines of this file should be of the form VAR=value, where VAR is one
of
# TZ, LANG, CMASK, or any of the LC_* environment variables.
#
TZ=US/Pacific
CMASK=022
#LANG=C
LANG=en_US
LC_ALL=en_US
 
If I telnet to the server then the information shows correctly:
 
root at server2: />telnet server
Trying <ip omitted>...
Connected to server
Escape character is '^]'.
 
SunOS 5.9
 
login: user
Password:
Last login: Tue Jan 23 09:28:04 from server2
Setting erase to ^H
user at server: />locale
LANG=en_US
LC_CTYPE="en_US"
LC_NUMERIC="en_US"
LC_TIME="en_US"
LC_COLLATE="en_US"
LC_MONETARY="en_US"
LC_MESSAGES="en_US"
LC_ALL=en_US


More information about the openssh-unix-dev mailing list