Operating System - HP-UX
1846868 Members
3140 Online
110256 Solutions
New Discussion

LANG=en_GB.ibm850 not available

 
SOLVED
Go to solution
steven Burgess_2
Honored Contributor

LANG=en_GB.ibm850 not available

Hi

I've got a problem with language availabilty.

i've a newly built 11 server and old scripts which connect me to our mainframe using sna

I have a problem when i'm trying to set

export LANG=en_GB.ibm850

Warning! One or more of your selected locales are not available.Please invoke the commands "locale" and "locale -a" to verify your selections and the available locales.

I thought the setting would defined in

/usr/lib/nls/config

However on a server that i can set en_GB.ibm850 there are only 2 options

en_GB.roman8
en_GB.iso88591

On the server i can set the required LANG to there is one file containing en_GB.ibm850

/usr/lib/nls/loc/src/en_GB.ibm.src

Can anyone enlighten me to making available the required LANG setting

Thanks in advance

Steve






take your time and think things through
3 REPLIES 3
Alex Glennie
Honored Contributor
Solution

Re: LANG=en_GB.ibm850 not available

see my email ....

Firstly you need an NLS locale which supports the IBM code page 850
that the terminals use. So create a character map file in /usr/lib/nls/loc/charmaps/ibm850.cm

The next file to create is the locale file which defines what
characters are what, how they are sorted and the date format.
use en_GB.iso88591 as a starting point as it contains most of the
extended letters and would correctly define money/date formats

To create the language (LANG=en_GB.ibm850) the following steps are
taken:

cd /usr/lib/nls/loc/src
localedef -vw -f ../charmaps/ibm850.cm -i en_GB.ibm.src en_GB.ibm850

Then edit /usr/lib/nls/config to add the new locale adding the line:

901 english.ibm850 en_GB.ibm850 # IBM850 by jbigg@uksr

This sets up the language but not the character translation that is
needed by SNA to get from EBCDIC to ASCII and back for this character
set.

ps I have not tried this and it's not really my area but suspect there will be few answer on the above .... nb this was taken from an old call logged by your current company .... about 7 years ago ... it was relevant for 10.x and I suspect iconv etc hasn't changed too much.
steven Burgess_2
Honored Contributor

Re: LANG=en_GB.ibm850 not available

Hi Alex

Thanks for the reply and mail

Looks like I don't have ansic compiler installed on this box. I think I will have to copy the files from another server

I'll let you know how I get on

Thanks

Steve
take your time and think things through
Patrick Wirth
Frequent Advisor

Re: LANG=en_GB.ibm850 not available

You wouldn't happen to be able to show me a master list of the HPUX NLS symbolic naming conventions that are used in the charmap files.

I'm currently trying to make a charmap for cp863 and have hit a snag trying to map the unicode characters
/u2591 light shade
/u2592 medium shade
/u2593 dark shade

I'm teased by utf8.cm which has symbolic names like

how does this map to values and names found at
http://www.unicode.org/charts/charindex.html