Skip to Content.
Sympa Menu

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

freetds AT lists.ibiblio.org

Subject: FreeTDS Development Group

List archive

Chronological Thread  
  • From: "SourceForge.net" <noreply AT sourceforge.net>
  • To: noreply AT sourceforge.net
  • Subject: [freetds] [ freetds-Patches-1729397 ] locale enhacements for ct-lib
  • Date: Fri, 01 Jun 2007 03:29:28 -0700

Patches item #1729397, was opened at 2007-06-01 12:29
Message generated for change (Tracker Item Submitted) made by Item Submitter
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=407808&aid=1729397&group_id=33106

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: Open
Resolution: None
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:
cs_loc_alloc()
cs_loc_drop()

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

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

thanks,
David


----------------------------------------------------------------------

You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=407808&aid=1729397&group_id=33106




Archive powered by MHonArc 2.6.24.

Top of Page