Sybase NNTP forums - End Of Life (EOL)

The NNTP forums from Sybase - forums.sybase.com - are now closed.

All new questions should be directed to the appropriate forum at the SAP Community Network (SCN).

Individual products have links to the respective forums on SCN, or you can go to SCN and search for your product in the search box (upper right corner) to find your specific developer center.

Localiztion issues

7 posts in Open Client Last posting was on 2002-06-06 18:32:08.0Z
Gayatri Devi K Posted on 2002-05-29 08:35:40.0Z
Message-ID: <3CF492DC.5232B9D2@cisco.com>
Date: Wed, 29 May 2002 14:05:40 +0530
From: Gayatri Devi K <gayatri@cisco.com>
X-Mailer: Mozilla 4.76 [en]C-CCK-MCD (Windows NT 5.0; U)
X-Accept-Language: en
MIME-Version: 1.0
Subject: Localiztion issues
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
Newsgroups: sybase.public.connectivity.open_client
Lines: 13
NNTP-Posting-Host: 64.104.138.148
Path: forums-1-dub!forums-master.sybase.com!forums.sybase.com
Xref: forums-1-dub sybase.public.connectivity.open_client:938
Article PK: 118277

Hi ,
Could u give me some pointers as to when the following error would
be seen.
"The context alloc routine failed when it tried to load localization
files!
Locale name "C" doesn't exist in your C:\Progra~1....locales.dat file"

This is in NT. I tried seeing another machine that is working. It has
locales.dat file but there is no directive for "C" under win32. The open
client library in use is 11.1
Any help in trouble shooting would be appriciated.
Thanx
-gayatri


ksuykry Posted on 2002-05-30 16:16:39.0Z
From: ksuykry@yahoo.com
Date: Thu, 30 May 2002 12:16:39 -0400
Newsgroups: sybase.public.connectivity.open_client
Subject: Open Client 12.5 Failed on Localization File
Message-ID: <450EC2A42A1056A400596A5385256BC9.0033C67585256BC8@webforums>
References: <3CF492DC.5232B9D2@cisco.com>
Lines: 16
MIME-Version: 1.0
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: 7bit
Path: forums-1-dub!forums-master.sybase.com!forums.sybase.com!webforums.sybase.com!news
Xref: forums-1-dub sybase.public.connectivity.open_client:928
Article PK: 118271

I am testing a simple 12.5 Open Client rpc program that is supplied with
Sybase.

When I run the program I get the following error:
Open Client Message:
Message number: LAYER = (5) ORIGIN = (3) SEVERITY = (5) NUMBER = (131)
Message String: ct_init(): network packet layer: internal net library
error: Fai
led to open Net-Library localization file
ERROR: ex_init: ct_init() failed
ex_panic: FATAL ERROR: ex_init failed

Thank you in advance for any help.

Kiri


Neal Stack Posted on 2002-05-29 13:13:42.0Z
Message-ID: <3CF4D406.8020500@sybase.com>
Date: Wed, 29 May 2002 07:13:42 -0600
From: Neal Stack <nstack@sybase.com>
Organization: Sybase, Inc.
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:0.9.4.1) Gecko/20020314 Netscape6/6.2.2
X-Accept-Language: en-us
MIME-Version: 1.0
To: Gayatri Devi K <gayatri@cisco.com>
Subject: Re: Localiztion issues
References: <3CF492DC.5232B9D2@cisco.com>
Content-Type: text/plain; charset=us-ascii; format=flowed
Content-Transfer-Encoding: 7bit
Newsgroups: sybase.public.connectivity.open_client
Lines: 30
NNTP-Posting-Host: 10.20.52.195
Path: forums-1-dub!forums-master.sybase.com!forums.sybase.com
Xref: forums-1-dub sybase.public.connectivity.open_client:937
Article PK: 118276

Hello,

Look at the environmental variables "LC_ALL" and possibly "LANG".
If either of them is set to "C", then they are set incorrectly. "C" is
a valid
locale setting on most UNIX systems (at the UNIX prompt type "locale -a"
to get a listing), but not on Windows platforms.

For Windows NT, you can see a list of valid locale settings in your
c:\sybase\locales\locales.dat file in the [win32s] section. To solve this
problem...
- You can unset the previously mentioned variables (set them to nothing or
delete them).
or
- Set them previously mentioned variables to a valid setting in your
locales.dat file.

Gayatri Devi K wrote:

>Hi ,
> Could u give me some pointers as to when the following error would
>be seen.
>"The context alloc routine failed when it tried to load localization
>files!
>Locale name "C" doesn't exist in your C:\Progra~1....locales.dat file"
>
>This is in NT. I tried seeing another machine that is working. It has
>locales.dat file but there is no directive for "C" under win32. The open
>client library in use is 11.1
>Any help in trouble shooting would be appriciated.
>Thanx
>-gayatri
>
>


kiri_suykry Posted on 2002-06-05 22:16:28.0Z
From: Kiri_Suykry
Date: Wed, 5 Jun 2002 18:16:28 -0400
Newsgroups: sybase.public.connectivity.open_client
Subject: Re: Localiztion issues
Message-ID: <86315E5CA024927E007A5BA785256BCF.004C97F685256BCD@webforums>
References: <3CF492DC.5232B9D2@cisco.com> <3CF4D406.8020500@sybase.com>
Lines: 15
MIME-Version: 1.0
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: 7bit
Path: forums-1-dub!forums-master.sybase.com!forums.sybase.com!webforums.sybase.com!news
Xref: forums-1-dub sybase.public.connectivity.open_client:903
Article PK: 118246

Neal, I really appreciate the response. I was able to get past this issue
on OC 12.0 after applying EBF. I am getting the same problem again on OC
12.5. A simple isql returns:

CS-LIBRARY error:
ct_init(): network packet layer: internal net library error: Failed
to o
pen Net-Library localization file
Attempting to obtain a localized error message failed.

LANG=en_US; LC_ALL is empty.

Thanks in advance for any help.

-- Kiri


Neal Stack Posted on 2002-06-06 13:39:14.0Z
Message-ID: <3CFF6602.4A725A79@sybase.com>
Date: Thu, 06 Jun 2002 07:39:14 -0600
From: Neal Stack <nstack@sybase.com>
Reply-To: nstack@sybase.com
X-Mailer: Mozilla 4.76 [en]C-CCK-MCD (Qwest.net) (Windows NT 5.0; U)
X-Accept-Language: en
MIME-Version: 1.0
Subject: Re: Localiztion issues
References: <3CF492DC.5232B9D2@cisco.com> <3CF4D406.8020500@sybase.com> <86315E5CA024927E007A5BA785256BCF.004C97F685256BCD@webforums>
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
Newsgroups: sybase.public.connectivity.open_client
Lines: 25
NNTP-Posting-Host: 10.22.120.35
Path: forums-1-dub!forums-master.sybase.com!forums.sybase.com
Xref: forums-1-dub sybase.public.connectivity.open_client:901
Article PK: 118240

en_US is an invalid locale for Windows platforms. I believe IBM's DB2
program sets LC_ALL=en_US when you install it. en_US IS a valid
setting for LC_ALL on most UNIX platforms (issue the "locale -a" command
at a UNIX prompt to get a list).

Look in your c:\sybase\locales\locales.dat file in the [win32s] section for
a list of valid Windows locales. You can either:
set LANG=enu (a valid Windows platform locale)
or
set LANG=
(basically, set this variable to nothing).

Kiri_Suykry wrote:

> Neal, I really appreciate the response. I was able to get past this issue
> on OC 12.0 after applying EBF. I am getting the same problem again on OC
> 12.5. A simple isql returns:
>
> CS-LIBRARY error:
> ct_init(): network packet layer: internal net library error: Failed
> to o
> pen Net-Library localization file
> Attempting to obtain a localized error message failed.
>
> LANG=en_US; LC_ALL is empty.
>
> Thanks in advance for any help.
>
> -- Kiri


kiri_suykry Posted on 2002-06-06 16:18:06.0Z
From: kiri_suykry
Date: Thu, 6 Jun 2002 12:18:06 -0400
Newsgroups: sybase.public.connectivity.open_client
Subject: Re: Localiztion issues
Message-ID: <9B04D6B13AA64C4600598BF485256BD0.0051421385256BD0@webforums>
References: <3CF492DC.5232B9D2@cisco.com> <3CF4D406.8020500@sybase.com> <86315E5CA024927E007A5BA785256BCF.004C97F685256BCD@webforums> <3CFF6602.4A725A79@sybase.com>
Lines: 6
MIME-Version: 1.0
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: 7bit
Path: forums-1-dub!forums-master.sybase.com!forums.sybase.com!webforums.sybase.com!news
Xref: forums-1-dub sybase.public.connectivity.open_client:899
Article PK: 118237

Neal, this error is very bizare. We are on IBM AIX 4.3.3. 12.0 isql works
fine but not 12.5. I have tried to set LANG = en_US and several others as
shown by locale -a. The real issue is we have an Open Client program that
is failing on 12.5 but I am using isql 12.5 to test for any problems.

Regards.


Neal Stack Posted on 2002-06-06 18:32:08.0Z
Message-ID: <3CFFAAA8.D337E17E@sybase.com>
Date: Thu, 06 Jun 2002 12:32:08 -0600
From: Neal Stack <nstack@sybase.com>
Reply-To: nstack@sybase.com
X-Mailer: Mozilla 4.76 [en]C-CCK-MCD (Qwest.net) (Windows NT 5.0; U)
X-Accept-Language: en
MIME-Version: 1.0
Subject: Re: Localiztion issues
References: <3CF492DC.5232B9D2@cisco.com> <3CF4D406.8020500@sybase.com> <86315E5CA024927E007A5BA785256BCF.004C97F685256BCD@webforums> <3CFF6602.4A725A79@sybase.com> <9B04D6B13AA64C4600598BF485256BD0.0051421385256BD0@webforums>
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
Newsgroups: sybase.public.connectivity.open_client
Lines: 30
NNTP-Posting-Host: 10.22.120.35
Path: forums-1-dub!forums-master.sybase.com!forums.sybase.com
Xref: forums-1-dub sybase.public.connectivity.open_client:898
Article PK: 118235

Hello,

LANG=en_US should be just fine for OC 12.5 on AIX 4.3.3.
In fact that is the default LANG value on the systems I've tested on...
% locale
LANG=en_US
LC_COLLATE="en_US"
LC_CTYPE="en_US"
LC_MONETARY="en_US"
LC_NUMERIC="en_US"
LC_TIME="en_US"
LC_MESSAGES=en_US
LC_ALL=
% isql -Usa -P -Sstack1 -I./interfaces

There was a bug for OC 12.5 in that it did not provide the locales for
non-US english languages and there is an EBF available for that.

If you are getting this problem with ISQL, it should create a file called
"sybinit.err" that would give us a little more details on the problem.

Although, based on the error that you provided, it sounds like it is having
trouble finding the network libraries. Make sure that your LIBPATH
environmental variable is defined correctly too.

kiri_suykry wrote:

> Neal, this error is very bizare. We are on IBM AIX 4.3.3. 12.0 isql works
> fine but not 12.5. I have tried to set LANG = en_US and several others as
> shown by locale -a. The real issue is we have an Open Client program that
> is failing on 12.5 but I am using isql 12.5 to test for any problems.
>
> Regards.