Operating System - HP-UX
1832973 Members
2569 Online
110048 Solutions
New Discussion

Strange behaviour :- While connected usign FTP, the listing of the files shows in different language

 
Unnikrishnan K
New Member

Strange behaviour :- While connected usign FTP, the listing of the files shows in different language

The list format within the FTP session is the german list format ( Date format) whereas the list format in the telnet session is the correct (english) list format. A sample listing of files shown below. Can anyone help?

ftp> dir
200 PORT command successful.
150 Opening ASCII mode data connection for /usr/bin/ls.
insgesamt 2
drwxr-xr-x 2 migroe sapsys 96 11. Juli, 13:02 testdir
-rw-r--r-- 1 migroe sapsys 0 11. Juli, 13:02 testfile
4 REPLIES 4
Luk Vandenbussche
Honored Contributor

Re: Strange behaviour :- While connected usign FTP, the listing of the files shows in different language

check the output of 'locale' and 'locale -a' on your server
Steven E. Protter
Exalted Contributor

Re: Strange behaviour :- While connected usign FTP, the listing of the files shows in different language

Shalom,

definitely sounds like a localization issue.

swlist -l product | more

You may see some German localizations installed and you would need to remove them and install English.

SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
Unnikrishnan K
New Member

Re: Strange behaviour :- While connected usign FTP, the listing of the files shows in different language

The output of "locale" is below.

#locale
LANG=
LC_CTYPE="C"
LC_COLLATE="C"
LC_MONETARY="C"
LC_NUMERIC="C"
LC_TIME="C"
LC_MESSAGES="C"
LC_ALL=
#

Attached ftp_issue.txt file contains the output of "locale -a" and "swlist -l package | grep locale" . As per the output, German language is installed but not set as default.
In a different server with German language installed work fine with FTP. So, unistallation of the German language is not a solution for this issue.
Dennis Handly
Acclaimed Contributor

Re: Strange behaviour :- While connected usign FTP, the listing of the files shows in different language

>SEP: You may see some German localizations installed and you would need to remove them and install English.

Just because it is installed, doesn't mean it is active, as Unnikrishnan also points out.
I too have zillions of locales, but I only run with American Nerd. All set by LANG or LC_*.

>The output of "locale" is below.

This is the output for who??
Is this anonymous ftp or a specific user? And if the latter, have you chrooted ftp so you need to look at that .profile?

If not there it may be set at some higher level.