1838240 Members
3362 Online
110125 Solutions
New Discussion

locale?

 
Ridzuan Zakaria
Frequent Advisor

locale?

Hi

I have a question regarding characterset encoding or LANG. Let say if I logged on to HP-UX server using my Exceed client/or any Terminal emulation software and set LANG=univ.UTF8. Now my session has local language set to UTF8 but the default LANG setup on the server is still C(US7ASCII) because I do not have anything setup in my /etc/rc.config.d/LANG. If I create a file from my UTF8 session. Will the file be saved as UTF8 or US7ASCII format on my HP-UX server.
quest for perfections
2 REPLIES 2
A. Clay Stephenson
Acclaimed Contributor

Re: locale?

Remember, the HP-UX box is simply storing values from 0 to 255. It doesn't care how the character sets are displayed - that is up to the display device. Some things which could affect your file's actual storage are the 'stty' settings. For example, you would need cs8 and istrip set to prevent the loss of the hi-order bit.

Like most environemnt vars, it is quite possible to have two users access the same file
with different LANG settings and each could be displayed appropriately.
If it ain't broke, I can fix that.
A. Clay Stephenson
Acclaimed Contributor

Re: locale?

Remember, the HP-UX box is simply storing values from 0 to 255. It doesn't care how the character sets are displayed - that is up to the display device. Some things which could affect your file's actual storage are the 'stty' settings. For example, you would need cs8 and istrip set to prevent the loss of the hi-order bit.

Like most environemnt vars, it is quite possible to have two users access the same file
with different LANG settings and each could be displayed appropriately.
If it ain't broke, I can fix that.