[freetds] [ freetds-Patches-1729392 ] locale enhacements for ct-lib

SourceForge.net noreply at sourceforge.net
Mon Jun 25 05:48:30 EDT 2007

Patches item #1729392, was opened at 2007-06-01 12:11
Message generated for change (Comment added) made by freddy77
You can respond by visiting: 

Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: ct-lib
Group: None
>Status: Closed
>Resolution: Accepted
Priority: 5
Private: No
Submitted By: David Nichols (david_nichols)
Assigned to: Nobody/Anonymous (nobody)
Summary: locale enhacements for ct-lib

Initial Comment:
This patch contains support for:

also cs_locale():
CS_SET and CS_GET for:
CS_LC_ALL (only when buffer = 0, CS_SET only)

for CS_SYB_SORTORDER I do not know how to set this in the relevant tds structure, so it's commented out for now.

also cs_con_props()
support for CS_SET and CS_GET for CS_LOC_PROP

with this patch you can successfully set the connection encoding and language, however only separately with cs_locale; not with CS_LC_ALL, as I'm not sure how to handle that.

I've tested all supported cases, also with valgrind for memory leaks.

It's working for me at least.  I am not setting TDSCONNECTION.client_charset however, only server_charset; I'm not sure if this could lead to errors or not?

The patch was created from the cvs version of freetds using cvs patch -u



>Comment By: Frediano Ziglio (freddy77)
Date: 2007-06-25 11:48

Logged In: YES 
Originator: NO



You can respond by visiting: 

More information about the FreeTDS mailing list