需要vi汉字的帐户的.profile中加上:
LANG=en_GB.ISO8859-1
export LANG
5. reboot机器 OK
一开始我的NETTERM上操作不能正确显示中文,然后我把自己要VI的用户的.profile文件修改一下就好了。呵呵!
我的bbb用户下的.profile文件为:
"/usr/bbb/.profile" 27 lines, 1001 characters
# @(#) profile 85.1 99/12/09
#
# Copyright (C) 1989-1999 The Santa Cruz Operation, Inc.
# All Rights Reserved.
# The information in this file is provided for the exclusive use of
# the licensees of The Santa Cruz Operation, Inc. Such users have the
# right to use, modify, and incorporate this code into other products
# for purposes authorized by the license agreement provided they include
# All Rights Reserved.
# The information in this file is provided for the exclusive use of
# the licensees of The Santa Cruz Operation, Inc. Such users have the
# right to use, modify, and incorporate this code into other products
# for purposes authorized by the license agreement provided they include
# this notice and the associated copyright notice with any such product.
# The information in this file is provided "AS IS" without warranty.
#
# .profile -- Commands executed by a login Bourne shell
#
[ -d /usr/local/bin -a -x /usr/local/bin ] && PATH=$PATH:/usr/local/bin
PATH=$PATHHOME/bin:. # set command search path
MAIL=/usr/spool/mail/`logname` # mailbox location
export PATH MAIL