Operating System - HP-UX
1848272 Members
5682 Online
104022 Solutions
New Discussion

Re: problem with characters using dtlogin

 
Peter Klausner_1
Frequent Advisor

problem with characters using dtlogin

hi,
i have the following problem:
Every time i login local via cde on my workstation i have the following problem with the ksh (i have a normal login with .profile and /etc/profile by setting *loginShell: True):
i can see the tilde and the backtick/backquote in my dtterm put this characters aren't interpreted form the shell the way the are shown.
Example
cd ~user don't change to the home-directory of the user
and
hallo=`uname`;echo $hallo
doesn't show me HPUX . Instead of i see `uname`
When i have via telnet everything is working right.
Under the bourne shell i see very strange characters for tilde and backticks (something like ^s^ for the tilde).
I found out, using the xd-tool that my backtick isn't 60 for the shell. It is interpreted as a different character.

How has an idea?

Thanks in advance
14 REPLIES 14
Sukant Naik
Trusted Contributor

Re: problem with characters using dtlogin

Hi,

The first thing which comes to my mind.

1. In your .dtprofile file in the home directory, unhash the following entry as follows

DTSOURCEPROFILE=true

Please get back to us with the result.

-Sukant
Who dares he wins
Steve Steel
Honored Contributor

Re: problem with characters using dtlogin

Hi

What does locale give in the dtterm

Or

What values does set give.

especially TERM




steve Steel
If you want truly to understand something, try to change it. (Kurt Lewin)
Peter Klausner_1
Frequent Advisor

Re: problem with characters using dtlogin

Hi Sukant,
by setting loginShell. true i pass my .profile (same as setting DTSOURCEPROFILE but also passing /etc/profile)

Hi Steve,
TERM=dtterm
i tried several locale (C,...). No success. What I am missing is a locale for swiss-german. My keboard is set to a ps 2 swiss german din keyboard.






Steve Steel
Honored Contributor

Re: problem with characters using dtlogin

Hi

locale -a

and

locale -m

Then try

export LANG=newlocale
export LC_ALL=newlocale


If you have
/etc/kbdlang what is in it


USB_PS2_DIN_SWISS_GERMAN2
USB_PS2_DIN_SWISS_GERMAN2_EURO


Steve Steel
If you want truly to understand something, try to change it. (Kurt Lewin)
Steve Steel
Honored Contributor

Re: problem with characters using dtlogin

Hi

Are you sure you use KSH

Have you tried another shell

Check the latest patches for CDE and shells


Steve Steel
If you want truly to understand something, try to change it. (Kurt Lewin)
Peter Klausner_1
Frequent Advisor

Re: problem with characters using dtlogin

Hi Steven here the otputs

locale -m
SJIS.cm
arabic8.cm
ascii.cm
big5.cm
ccdc.cm
eucJP.cm
eucKR.cm
eucTW.cm
greek8.cm
hebrew8.cm
hp15CN.cm
iso88591.cm
iso88592.cm
iso88595.cm
iso88596.cm
iso88597.cm
iso88598.cm
iso88599.cm
kana8.cm
roman8.cm
tis620.cm
turkish8.cm
utf8.cm
iso885915.cm

Output locale -a
C
POSIX
C.iso88591
C.utf8
univ.utf8
ar_DZ.arabic8
ar_SA.arabic8
ar_SA.iso88596
bg_BG.iso88595
cs_CZ.iso88592
da_DK.iso88591
da_DK.roman8
nl_NL.iso88591
nl_NL.roman8
en_GB.iso88591
en_GB.roman8
en_US.iso88591
en_US.roman8
fi_FI.iso88591
fi_FI.roman8
fr_CA.iso88591
fr_CA.roman8
fr_FR.iso88591
fr_FR.roman8
de_DE.iso88591
de_DE.roman8
el_GR.greek8
el_GR.iso88597
iw_IL.hebrew8
iw_IL.iso88598
hu_HU.iso88592
is_IS.iso88591
is_IS.roman8
it_IT.iso88591
it_IT.roman8
no_NO.iso88591
no_NO.roman8
pl_PL.iso88592
pt_PT.iso88591
pt_PT.roman8
ro_RO.iso88592
ru_RU.iso88595
hr_HR.iso88592
sk_SK.iso88592
sl_SI.iso88592
es_ES.iso88591
es_ES.roman8
sv_SE.iso88591
sv_SE.roman8
th_TH.tis620
tr_TR.iso88599
tr_TR.turkish8
C.iso885915
da_DK.iso885915@euro
nl_NL.iso885915@euro
en_GB.iso885915@euro
fi_FI.iso885915@euro
fr_CA.iso885915
fr_FR.iso885915@euro
de_DE.iso885915@euro
is_IS.iso885915@euro
it_IT.iso885915@euro
no_NO.iso885915@euro
pt_PT.iso885915@euro
es_ES.iso885915@euro
sv_SE.iso885915@euro
fr_CA.utf8
fr_FR.utf8
de_DE.utf8
it_IT.utf8
es_ES.utf8
sv_SE.utf8

content of /etc/kbdlang

PS2_DIN_Swiss_German2

peter

Steve Steel
Honored Contributor

Re: problem with characters using dtlogin

Hi

try

export LANG=german.iso88591
dtterm


Steve Steel
If you want truly to understand something, try to change it. (Kurt Lewin)
Steve Steel
Honored Contributor

Re: problem with characters using dtlogin

Hi

Try

xmodmap -e "keycode 94 = asciicircum grave asciitilde"




Steve Steel
If you want truly to understand something, try to change it. (Kurt Lewin)
Peter Klausner_1
Frequent Advisor

Re: problem with characters using dtlogin

Hi Steve,
thank you very much.
xmodmap works. But under sh i have still problems


Peter
Steve Steel
Honored Contributor

Re: problem with characters using dtlogin

Hi


there is a problem with sh

what is the latest sh patch you have

If you give the OS version you have I will check it.


steve steel
If you want truly to understand something, try to change it. (Kurt Lewin)
Hartmut Lang
Trusted Contributor

Re: problem with characters using dtlogin

Could it be a problem with your stty-settings?

What is the out put of
"stty -a" ?


BTW: what is the difference between a "USB_PS2_DIN_German" and a "PS2_DIN_Swiss_German2" keyboard?

Hartmut
Peter Klausner_1
Frequent Advisor

Re: problem with characters using dtlogin

Hi Steven,

OS:HP-UX 11.00 32 BIT

Hi Hartmut,

The difference is the type of the interface of the keyboard (PS2 or USB)


Peter
Peter Klausner_1
Frequent Advisor

Re: problem with characters using dtlogin

Hi Steve,

i have the following sh_posix(1) cumulative Patches on my machine:


PHCO_18447 and PHCO_23873 on my machine


Peter
Steve Steel
Honored Contributor

Re: problem with characters using dtlogin

Hi

1)Check swlist -l fileset|grep PH|grep sh

Need
PHCO_26783
PHCO_26789
PHCO_26014

As a minimum patch level for the shells


2)Exactly what is wrong in sh


Steve Steel
If you want truly to understand something, try to change it. (Kurt Lewin)