Operating System - HP-UX
1826004 Members
3364 Online
109690 Solutions
New Discussion

Character Set Problem When Setting LANG var

 
SOLVED
Go to solution
Clay Jordan
Advisor

Character Set Problem When Setting LANG var

I have an 11.i v1 (11.11) system where the LANG var defaults to C since it is not set. The charset doesn't match a similar 11.0 system with a LANG default of C. For example, the euro sign can be displayed using `echo "\0200"` on the ll.0 system. Doing the same on ll.i yields a blank line.
I wrote a perl script that iterates through the charset (1-255) using the echo command for the octal value and the last 128 characters seem to repeat the first 128 characters, unlike the 11.0 system which shows various western european language characters. I have set both `stty -istrip cs8` and the LANG var and started a child shell and it still does the same. Since 11.i by default ought to be able to display the euro without patches, this make no sense to me. Any ideas ?
4 REPLIES 4
Kent Ostby
Honored Contributor

Re: Character Set Problem When Setting LANG var

Clay --

For 11.11, you need to use C.iso8895-15 .

On 11.00, the addition of the "euro" was late and not necessarily up to all the standard approaches. Hence it "worked" on Lang=C even though it probably shouldnt have.

By 11.11, HP had a clear standard to go off of and clarified which LANG settings the euro works on and doesnt work on.

Best regards,

Kent M. Ostby
"Well, actually, she is a rocket scientist" -- Steve Martin in "Roxanne"
Clay Jordan
Advisor

Re: Character Set Problem When Setting LANG var

Thanks, but that still did not work. The real purpose is to get the norwegian charset to work. When I use no_NO.iso885915@euro, certain command like date work, but the echo command fails on what I know are the correct octal codes as does emulated keyboard input. I am wondering if there is a binary problem. although sh and echo both are dynamically-linked.
Kent Ostby
Honored Contributor
Solution

Re: Character Set Problem When Setting LANG var

I've also been told that /sbin/sh wont work for anything but LANG=C but /usr/bin/sh is fully internationalized.



"Well, actually, she is a rocket scientist" -- Steve Martin in "Roxanne"
Clay Jordan
Advisor

Re: Character Set Problem When Setting LANG var

I must humbly apologize . I have found the cause and it was the terminal emulation software on the client side. I made the mistake of assuming the options were global instead of per session but it was stripping the 8th bit on the session for the 11.i server. Thank you for you help in spite of my mistake.