Operating System - HP-UX
1826098 Members
4684 Online
109690 Solutions
New Discussion

Re: localization HP-UX 11

 
SOLVED
Go to solution
Laurent Laperrousaz
Regular Advisor

localization HP-UX 11

Hi,
My system has a strange behaviour: when LANG is set to LANG=fr_FR.iso8859, the answers waited by the prompt are never accepted (french or english).
when it is set to LANG=en_US.iso88591 then the answers accepted are only french and not english .
I suppose there is another environment variable to set to get the proper language for the terminal dialog.

For example if I want to remove a file with american set LANG, then the prompt asks remove file.gz? and i have to answer : oui (yes in french) to get the file removed...
7 REPLIES 7
Ramkumar Devanathan
Honored Contributor

Re: localization HP-UX 11

Hi,

check for all environment variables LC_*.

One of them might be set wrongly.

$ env | grep ^LC_

should get you all the variables and their values.

- ramd.
HPE Software Rocks!
Laurent Laperrousaz
Regular Advisor

Re: localization HP-UX 11

I Have no LC_* set for any user...
Ramkumar Devanathan
Honored Contributor

Re: localization HP-UX 11

Hi,

Can you paste out output of the following command, here -

# env

also paste out contents of /etc/rc.config.d/LANG

- ramd.
HPE Software Rocks!
Laurent Laperrousaz
Regular Advisor

Re: localization HP-UX 11

hector@hpisim:/home/hector>env
PWD=/home/hector
TZ=MET-1METDST
ORACLE_SID=ISIM
SHLIB_PATH=lib
LDOPTS= +s +blib
MANPATH=/usr/share/man/%L:/usr/share/man:/usr/contrib/man/%L:/usr/contrib/man:/usr/local/man/%L:/usr/local/man:/opt/upgrade/share/man/%L:/opt/upgrade/share/man:/usr/dt/share/man:/opt/pd/share/man/%L:/opt/pd/share/man:/opt/ignite/share/man/%L:/opt/ignite/share/man:/opt/samba/man://opt/perl/man:/opt/resmon/share/man:/opt/pred/share/man/%L:/opt/pred/share/man:/opt/hparray/share/man/%L:/opt/hparray/share/man:/opt/ots/man:/opt/OV/man:/opt/aCC/share/man/%L:/opt/langtools/share/man/%L:/opt/langtools/share/man:/opt/perf/man/%L:/opt/perf/man:/opt/OV/man/itose/%L:/opt/OV/man/itose:/opt/aCC/share/man
PS1=hector@hpisim:$PWD>
USER=hector
ERASE=^H
MAIL=/var/spool/mail/hector
OLDPWD=/home/hector/gen.refPerf/gen.sl
EDITOR=vi
LANG=en_US.iso88591
ORACLE_HOME=/ora/ora9i
SSH_CLIENT=192.168.11.94 1260 22
LOGNAME=hector
SHLVL=1
SHELL=/usr/local/bin/bash
CVSROOT=:pserver:tango@jupiter.lusis:/home/cvs
HOME=/home/hector
TERM=vt100
SSH_AUTH_SOCK=/tmp/ssh-fAsOl449/agent.449
PATH=../bin:/opt/fileutils/bin:/usr/sbin:../bin:/opt/fileutils/bin:/usr/sbin:/usr/bin:/usr/ccs/bin:/usr/contrib/bin:/usr/local/bin:/opt/nettladm/bin:/opt/fc/bin:/opt/fcms/bin:/opt/upgrade/bin:/opt/pd/bin:/usr/bin/X11:/usr/contrib/bin/X11:/opt/perl/bin:/opt/resmon/bin:/usr/sbin/diag/contrib:/opt/pred/bin:/opt/hparray/bin:/opt/ots/bin:/opt/ots/lbin:/opt/aCC/bin:/opt/langtools/bin:/opt/perf/bin:/opt/OV/bin/OpC:/ora/ora9i/bin:.:/sbin:/home/TANGO/bin:.:/sbin:/home/TANGO/bin
NLS_LANG=AMERICAN_AMERICA.WE8ISO8859P9
PRODUCT=..
SSH_TTY=/dev/pts/0
_=/usr/bin/env


hector@hpisim:/home/hector>more /etc/rc.config.d/LANG
#!/sbin/sh
# @(#) $Revision: 78.1 $
# Language preference. See lang(5), hpnls(5)
#
# LANG: Locale name
#
# Note: if using the default C locale, many commands will execute faster if
# LANG is not set.
#
#LANG=C
#export LANG
Ramkumar Devanathan
Honored Contributor

Re: localization HP-UX 11

Hi Laurent,

Obviously there's some problem with the environment variables or with the binaries. Can you check if the commands you are running are from their relevant directories?

like rm should be present at /usr/bin.

Also try this -

unset LANG
unset LC_ALL

run rm -i now.

when i set LANG to fr_FR.iso88591 and run rm -i, it prompts me with the following question -

# rm -i abc
abc: ? (o/n)

I wonder what could really be wrong? I am blind right now.. :)

Can you try running tusc on the rm command and seeing what the system calls it makes are... that may help - although it could be overkill.

sometimes logout and login may help. try that out.. if you are really interested in the internals, you may try the tusc method.

does your shell have a native language set?

- ramd
HPE Software Rocks!
Olav Baadsvik
Esteemed Contributor
Solution

Re: localization HP-UX 11


Hello,

I suggest you check if you have an alias
or a script called rm.

Try to run the rm command as follows:


/usr/bin/rm -i

Also check the output of the this command:

file /usr/bin/rm
It should say:

PA-RISC1.1 shared executable dynamically linked

Olav

Laurent Laperrousaz
Regular Advisor

Re: localization HP-UX 11

Olav pointed the trick!
I checked the commnand with:
"which rm"

In fact I am using :

/opt/fileutils/bin/rm, cp ln

which behave curiously on my system...