[Solved] Need help in date display

Hi,

I have one hp-ux sytem date display problem when viewed remotely

hostA 21: date
Fri Jul  5 11:18:51 SST 2013
hostA 22: remsh hostB -l username -n date
2013�N07��05�� 11��32��27�b

But on actual system it display correctly:confused:

hostB 21: date
Fri Jul  5 11:40:33 SST 2013

It looks like the locale you're using on hostA is different from the locale remsh hostB is using.

Hi DC.
Both system have the same locale and env. However, base from your hint. I want to check what is my hostB charmap is using. is there a way to check it?

Thanks by the way!

Is the output from the commands:

locale
    and
remsh hostB -l username locale

the same? The charmap is related to the value reported for LC_CTYPE.

Hi DC,

I get it now. it is not the same :o

hostA 23: locale
LANG=
LC_CTYPE="C"
LC_COLLATE="C"
LC_MONETARY="C"
LC_NUMERIC="C"
LC_TIME="C"
LC_MESSAGES="C"
LC_ALL=
hostA 24: remsh hostB-l username -n locale
LANG=ja_JP.SJIS
LC_CTYPE="ja_JP.SJIS"
LC_COLLATE="ja_JP.SJIS"
LC_MONETARY="ja_JP.SJIS"
LC_NUMERIC="ja_JP.SJIS"
LC_TIME="ja_JP.SJIS"
LC_MESSAGES="ja_JP.SJIS"
LC_ALL=

this ease my problem. thank you very much for the help :):b: