Proper Method of Setting the Client Charset From Ctlib API

<[email protected]>
Newsgroups gmane.comp.db.tds.freetds
Message-ID <[email protected]>
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
[email protected]
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.