免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 6889 | 回复: 3
打印 上一主题 下一主题

弱弱的问一下hpux中文显示问题?? [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2007-03-18 20:37 |只看该作者 |倒序浏览
在网上看到的资料,说是hpux显示不了中文
在/etc/rc.config.d/LANG 文件中加入
LANG=zh_CN.hp15CN
export LANG
在/etc/profile 中加入
stty -istrip -party c
但我不知道怎么加法,在哪个位置加?是加到最后吗?
如:cee_db@/ #vi /etc/profile
"/etc/profile" 145 lines, 2479 characters

# @(#)B.11.11_LR

# Default (example of) system-wide profile file (/usr/bin/sh initialization).
# This should be kept to the bare minimum every user needs.

# Ignore HUP, INT, QUIT now.

        trap "" 1 2 3

# Set the default paths - Do NOT modify these.
# Modify the variables through /etc/PATH and /etc/MANPATH

        PATH=/usr/bin:/usr/ccs/bin:/usr/contrib/bin
        MANPATH=/usr/share/man:/usr/contrib/man:/usr/local/man

# Insure PATH contains either /usr/bin or /sbin (if /usr/bin is not available).

        if [ ! -d /usr/sbin ]
        then
                PATH=$PATH:/sbin

        else    if [ -r /etc/PATH ]
                then

                # Insure that $PATH includes /usr/bin .  If /usr/bin is
                # present in /etc/PATH then $PATH is set to the contents
                # of /etc/PATH.  Otherwise, add the contents of /etc/PATH
                # to the end of the default $PATH definition above.

                        grep -q -e "^/usr/bin$" -e "^/usr/bin:" -e ":/usr/bin:"\
                                -e ":/usr/bin$" /etc/PATH
                        if [ $? -eq 0 ]
                        then
                                PATH=`cat /etc/PATH`
                        else
                                PATH=$PATH:`cat /etc/PATH`
                        fi
                fi
        fi

        export PATH

# Set MANPATH to the contents of /etc/MANPATH, if it exists.

        if [ -r /etc/MANPATH ]
        then
                MANPATH=`cat /etc/MANPATH`
        fi

        export MANPATH

# Set the TIMEZONE

        if [ -r /etc/TIMEZONE ]
        then
           . /etc/TIMEZONE
        else
            TZ=MST7MDT               # change this for local time.
            export TZ
        fi

# Be sure that VUE does not invoke tty commands

   if [ ! "$VUE" ]; then

   # set term if it's not set

        if [ "$TERM" = "" -o "$TERM" = "unknown" -o "$TERM" = "dialup"  \
             -o "$TERM" = "network" ]
        then
                eval `ttytype -s -a`
        fi

        export TERM

   # set erase to ^H, if ERASE is not set
        if [ "$ERASE" = "" ]
        then
                ERASE="^H"
                export ERASE
        fi
        stty erase $ERASE

   # Set up shell environment:

        trap "echo logout" 0


   # This is to meet legal requirements...

        cat /etc/copyright

   # Message of the day

        if [ -r /etc/motd ]
        then
                cat /etc/motd
        fi

   # Notify if there is mail

        if [ -f /usr/bin/mail ]
        then
                if mail -e
                then    echo "You have mail."
                fi
        fi

   # Notify if there is news

        if [ -f /usr/bin/news ]
        then news -n
        fi

   # Change the backup tape

        if [ -r /tmp/changetape ]
        then    echo "\007\nYou are the first to log in since backup:"
                echo "Please change the backup tape.\n"
                rm -f /tmp/changetape
        fi

   fi                                           # if !VUE

# Leave defaults in user environment.

   trap 1 2 3
export TMOUT=0

论坛徽章:
0
2 [报告]
发表于 2007-03-19 15:23 |只看该作者
先要看你有没有安装中文支持环境,然后设置LANG环境变量就可以了。

论坛徽章:
0
3 [报告]
发表于 2007-03-19 20:39 |只看该作者
locale -a |more
看看有没有装中文字符集,追加到/etc/profile就可以

招聘 : 系统集成
论坛徽章:
0
4 [报告]
发表于 2007-10-30 16:03 |只看该作者
1) 安装中文CDE包
#swlist |grep -i cde
  CDE-ChineseS                  B.11.11.0412   Simplified Chinese CDE Environment

2) 编辑 /etc/dt/config/Xconfig
Dtlogin*language:zh_CN.hp15CN


3) 配置好Xmanager中文字库

这样CDE整个就变成中文界面了
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP