Skip to Content.
Sympa Menu

freetds - [freetds] Proper Method of Setting the Client Charset From Ctlib API

freetds AT lists.ibiblio.org

Subject: FreeTDS Development Group

List archive

Chronological Thread  
  • From: <Mitchell_Freed AT McAfee.com>
  • To: <freetds AT lists.ibiblio.org>
  • Subject: [freetds] Proper Method of Setting the Client Charset From Ctlib API
  • Date: Wed, 15 Aug 2012 14:23:33 -0700

What is the proper method of setting the client charset from ctlib
without using a freetds conf file? Most other properties are available
as CS enumerations and can be set via ct_con_props, but client charset
isn't a defined enumeration by SYBASE.

I see that tds/login.c has a tds_set_client_charset function, but it
isn't called from ctlib/ct.c ct_con_props -- probably because there
isn't a property enum defined for client charset. It's easily patchable
to call through from ct_con_props to set/get the client charset, but it
seems like it's a bad idea since there is no CS enum for client charset.

Thanks,
--
Mitch Freed
Mitch_Freed AT McAfee.com




Archive powered by MHonArc 2.6.24.

Top of Page