[freetds] Re:Sample C Program
Venky Karuppur
venkykc at hotmail.com
Fri Apr 4 13:48:26 EST 2003
Thanks for the reply Swapna.. I still have this nls problem but this is not
something major.. What I have now! is the parser(src/tds/config.c) doesn't
appear to work properly on Sco platform.. I tried to dump what's been parsed
(in function tds_parse_conf_section in src/tds/config.c) and it seems to be
printing out the values which wre hashed out and for the hostname it comes
with an additional newline
so for ex: option = 'host' value = 'node1 <NewLine>').. Because of this it
fails at gethostbyname_r function. I tried to hardcode the value to the
gethostbyname_r function but still fails at a different point (at
inet_ntoa(hostname) inside src/tds/login.c). I tried writing a small socket
routine to test the platform and it works fine!. Any ideas?
Thanks
Venky
>From: Swapna_Anand <Swapna_Anand at Satyam.com>
>To: venkykc at hotmail.com
>Subject: RE: [freetds] Re:Sample C Program
>Date: Thu, 27 Mar 2003 17:27:24 +0530
>MIME-Version: 1.0
>Received: from vvamail.satyam.com ([208.220.248.10]) by
>mc9-f24.bay6.hotmail.com with Microsoft SMTPSVC(5.0.2195.5600); Thu, 27 Mar
>2003 04:02:44 -0800
>Received: from che1.satyam.com (che1.satyam.com [208.220.241.15])by
>vvamail.satyam.com (8.11.6/8.11.6) with ESMTP id h2RC5It32218for
><venkykc at hotmail.com>; Thu, 27 Mar 2003 07:05:19 -0500
>Received: from ccrnt003.satyam.com (localhost [127.0.0.1])by
>che1.satyam.com (8.11.6/8.11.6) with ESMTP id h2RBhid24928for
><venkykc at hotmail.com>; Thu, 27 Mar 2003 17:13:49 +0530
>Received: by ccr.satyam.com with Internet Mail Service (5.5.2653.19)id
><HDLCPDBJ>; Thu, 27 Mar 2003 17:27:24 +0530
>X-Message-Info: JGTYoYF78jEHjJx36Oi8+Q1OJDRSDidP
>Message-ID: <FA3F4D4380B5D51186D600B0D0AAD24205F9AB52 at ccr.satyam.com>
>X-Mailer: Internet Mail Service (5.5.2653.19)
>Return-Path: Swapna_Anand at Satyam.com
>X-OriginalArrivalTime: 27 Mar 2003 12:02:44.0350 (UTC)
>FILETIME=[C672B1E0:01C2F458]
>
>http://www.unet.univie.ac.at/aix/libs/basetrf1/iconv_open.htm
>
>This link might help you find the files
>
>It says this and more
>
>The iconv_open subroutine first searches the LOCPATH environment variable
>for a converter, using the two user-provided code set names, based on the
>file name convention that follows:
>
>FromCode: "IBM-850"
>ToCode: "ISO8859-1"
>conversion file: "IBM-850_ISO8859-1"
>The conversion file name is formed by concatenating the ToCode code set
>name
>onto the FromCode code set name, with an _ (underscore) between them.
>
>The LOCPATH environment variable contains a list of colon-separated
>directory names. The system default for the LOCPATH environment variable
>is:
>
>LOCPATH=/usr/lib/nls/loc
>
>
>
>
>-----Original Message-----
>From: Venky Karuppur [mailto:venkykc at hotmail.com]
>Sent: Thursday, March 27, 2003 4:53 PM
>To: freetds at lists.ibiblio.org
>Cc: thompbil at exchange.uk.ml.com
>Subject: [freetds] Re:Sample C Program
>
>
>Thanks Bill
>I found the the C program and could successfully test it in Linux box.But i
>have problems in SCO box. Say for exampe I compiled the file t0001.c under
>freetds-0.61/src/tds/unittests. It compiled fine and when I tried to run
>the
>
>executable it came back with the following error (with verbose on)..
>
>t0001.c: Testing login, logout
>Entered tds_try_login()
>Trying read_login_info()
>Setting login parameters
>Connecting to database
>iconv_open cannot open conversion file /usr/lib/nls/conv/_UCS-2LE
>tds_connect() failed
>try_tds_login() failed
>
>There is no problem with user-id/password or connection. You can see an
>additional message (iconv_open cannot open....) Its looking for this
>Unicode2LittleEndian translation file in that particular directory (I don't
>know where to get the file from?). Is it failing because of this?
>
>thanks
>Venky
>
>
>
>
>
>
>_________________________________________________________________
>Worried what your kids see online? Protect them better with MSN 8
>http://join.msn.com/?page=features/parental&pgmarket=en-gb&XAPID=186&DI=1059
>
>_______________________________________________
>FreeTDS mailing list
>FreeTDS at lists.ibiblio.org
>http://lists.ibiblio.org/mailman/listinfo/freetds
>**************************************************************************
>This email (including any attachments) is intended for the sole use of the
>intended recipient/s and may contain material that is CONFIDENTIAL AND
>PRIVATE COMPANY INFORMATION. Any review or reliance by others or copying or
>distribution or forwarding of any or all of the contents in this message is
>STRICTLY PROHIBITED. If you are not the intended recipient, please contact
>the sender by email and delete all copies; your cooperation in this regard
>is appreciated.
>**************************************************************************
_________________________________________________________________
Hotmail messages direct to your mobile phone http://www.msn.co.uk/mobile
More information about the FreeTDS
mailing list