OpenSSH
[Top] [All Lists]

support of locale

To: <openssh-unix-dev@mindrot.org>
Subject: support of locale
From: "Cynthia K MULLIS" <Cynthia.K.Mullis@state.or.us>
Date: Tue, 23 Jan 2007 09:44:01 -0800
Delivered-to: sp-com-lists@consult.net
Delivered-to: openssh-unix-dev-list1@securepoint.com
Delivered-to: openssh-unix-dev-tmda@mindrot.org
Delivered-to: tmda@mindrot.org
List-archive: <http://lists.mindrot.org/pipermail/openssh-unix-dev>
List-help: <mailto:openssh-unix-dev-request@mindrot.org?subject=help>
List-id: Development of portable OpenSSH <openssh-unix-dev.mindrot.org>
List-post: <mailto:openssh-unix-dev@mindrot.org>
List-subscribe: <http://lists.mindrot.org/mailman/listinfo/openssh-unix-dev>, <mailto:openssh-unix-dev-request@mindrot.org?subject=subscribe>
List-unsubscribe: <http://lists.mindrot.org/mailman/listinfo/openssh-unix-dev>, <mailto:openssh-unix-dev-request@mindrot.org?subject=unsubscribe>
Old-delivered-to: openssh-unix-dev@mindrot.org
Sender: openssh-unix-dev-bounces+openssh-unix-dev-list1=securepoint.com@mindrot.org
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@server: />locale
LANG=
LC_CTYPE="C"
LC_NUMERIC="C"
LC_TIME="C"
LC_COLLATE="C"
LC_MONETARY="C"
LC_MESSAGES="C"
LC_ALL=
 
root@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@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@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
_______________________________________________
openssh-unix-dev mailing list
openssh-unix-dev@mindrot.org
http://lists.mindrot.org/mailman/listinfo/openssh-unix-dev

<Prev in Thread] Current Thread [Next in Thread>