Operating System - HP-UX
1826452 Members
4063 Online
109692 Solutions
New Discussion

Re: Using German characters

 
SOLVED
Go to solution
Ryan_11
Advisor

Using German characters

Hi,

I am trying to use the German special characters in a terminal based session.
When I type Alt+0246 for example to get the ? character, I just get garbage. I have tried setting the LANG enviroment variable but I am still missing something. I need a hint please.

Thanks
Ryan Odgers
7 REPLIES 7
Carlos Fernandez Riera
Honored Contributor
Solution

Re: Using German characters

run ksh:

stty cs8 -istrip.

Try now.
unsupported
Ryan_11
Advisor

Re: Using German characters

AHHH! So easy. I had already set my terminal with stty cs8 -istrip but was using the POSIX sh shell. All I needed was to be using the Korn shell. Why doesn't this work with the POSIX shell?

Thanks a million Carlos!
Ryan
Carlos Fernandez Riera
Honored Contributor

Re: Using German characters

I whish to know it too...

Be warning about use of 'more'. It have the same problem.
unsupported
Marc Dijkstra
Trusted Contributor

Re: Using German characters

Ryan!

Do u know if BASH is portable to hp-ux? I find the functionality in bash far better than ksh,sh,csh etc.

PS: Malawi off again, in PTA on wed, lets do beer!
"A computer lets you make more mistakes faster than any invention in human history - with the possible exceptions of handguns and tequila"
Manuel P. Ron
Frequent Advisor

Re: Using German characters

Yes, the POSIX shell don't work with LANGUAGE directly. You must call a new shell (sh command) and now it work's. But, now, the users must type exit two times to really exit. The solution is to include in the .profile a exec call to replace the parent shell with the new shell. It is like 'exec /usr/bin/sh'. Be careful to include this line in root's .profile. In mantenience mode (hpux -is) the server go into a loop. Include a if-fi condition to check if the run-level is 3 or 5!
Crash programs fail because they are based on the theory that, with nine women pregnant, you can get a baby a month. - Wernher von Braun
Ryan_11
Advisor

Re: Using German characters

Manuel,

Strange, but I can't get the characters to work even if I invoke a new /usr/bin/sh.
The ksh is working so that's the way I am going to go. The users don't interact with the shell at all so it doesn't matter to them.

Thanks to all for your help
Ryan
Carlos Fernandez Riera
Honored Contributor

Re: Using German characters

Hi Ryan:

No such strange, /sbin/sh and /usr/bin/sh are different; do ll on both.

You can change it on /etc/passwd ( for root it must be /sbin/sh).


Regards.
unsupported