[freetds] VMS, tsql and locale

Bernard Giroud bernard.giroud at creditlyonnais.ch
Tue May 6 05:51:50 EDT 2003

This e-mail contains confidential information or information belonging 
to the Credit Lyonnais Group entity sending it and is intended solely 
for the addressees. Any views expressed in this message are those of 
the individual sender and its contents do not constitute a commitment 
by Credit Lyonnais unless confirmed by letter or fax. The unauthorised 
disclosure, use, dissemination or copying (either whole or partial) of 
this e-mail, or any information it contains, is prohibited. E-mails are 
susceptible to alteration and their integrity cannot be guaranteed.
Internet communications are not secured and therefore Credit Lyonnais 
shall not be liable for this e-mail if modified or falsified. If you 
are not the intended recipient of this e-mail, please delete it 
immediately from your system and notify the sender of the wrong 
delivery and the mail deletion.
-------------- next part --------------

-----Message d'origine-----
De : Craig A. Berry <craigberry at mac.com>
À : FreeTDS Development Group <freetds at lists.ibiblio.org>
Date : mardi, 6. mai 2003 07:30
Objet : [freetds] (no subject)

>At 1:49 PM +0200 5/5/03, Bernard Giroud wrote:
>>one of this change is the hardcoding of UCS-2LE in tds_iconv_open.
>>VMS only knows UCS-2. So iconv_open doesn't work, and because
>>initialization is not aborted, it keeps sending something the server
>>doesn't understand.
>>How did you solve that problem, Craig ?
>I punted on that.  As I think the ensuing discussion has shown, Freddy and
James are still working out the portability/translatability of character set
names.  It's looking like the translations will be done in
sybase_character_sets.h and we'll need to put some VMS-specific code in
there.  If the character set business is of primary importance to you, then
stand by and/or try to catch the rapidly evolving support infrastructure by
the tail.
>If you just want to get a working FreeTDS on VMS, the easiest workaround at
the moment would be drop the [.vms] directory from CVS or a recent nightly
snapshot into a directory containing a final release 0.61 distribution.

That's fine for me with the actual version it's running ok!

>At 8:07 AM -0400 5/5/03, James K. Lowden wrote:
>>P.S.  If VMS doesn't have strncpy(), please consider adding one to
>It's had strncpy() for something like 15-20 years (it'd take actual work to
be more precise).  I think Bernard just meant he took the following line and
stuck in a different spelling for the character set name:
>        strncpy(server->name, "UCS-2LE", sizeof(server->name));

Yes, but I recognise I wasn't clear enough !

Other points:

- Tsql needs locale, which is not defined in vms/config_h.vms.
Would it be possible to permanently define HAVE_LOCALE_H,
or is it necessary to test if it is installed ?

- It would be nice to include GNU readline into tsql ? Any hint ?

>Craig A. Berry
>mailto:craigberry at mac.com
>"... getting out of a sonnet is much more
> difficult than getting in."
>                 Brad Leithauser

More information about the FreeTDS mailing list