Discussion:
[freetds] Proper Method of Setting the Client Charset From Ctlib API
Mitchell_Freed
2012-08-15 21:23:33 UTC
Permalink
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
wgloger
2012-08-16 07:13:09 UTC
Permalink
Loading...