Skip to Content.
Sympa Menu

freetds - Re: [freetds] SQL Server version and TDS Version

freetds AT lists.ibiblio.org

Subject: FreeTDS Development Group

List archive

Chronological Thread  
  • From: Frediano Ziglio <freddy77 AT gmail.com>
  • To: FreeTDS Development Group <freetds AT lists.ibiblio.org>
  • Subject: Re: [freetds] SQL Server version and TDS Version
  • Date: Mon, 03 May 2010 23:37:12 +0200

Il giorno ven, 30/04/2010 alle 16.30 -0400, jklowden AT schemamania.org ha
scritto:
> On Fri, Apr 30, 2010 at 02:58:12PM -0400, jklowden AT schemamania.org wrote:
> >
> > 1. API call e.g. DBSETLCHARSET().
> > 2. freetds.conf.
> > 3. nl_langinfo(3) /* query using CODESET parameter */
> > 4. setlocale(3) /* query using NULL parameter, split on "." */
> > 5. ISO 8859-1
> >
> > None of this works today, as you know.
>
> It works even less now. I committed changes to tds_alloc_locale()
> to get its initial values as I described. glibc give a free backtrace
> error. I'm sure it's right, but I've run out of time.
>

strdup man, strdup !! :)

I think I fixed the problem yesterday...

> The search-for-canonical has to stay, but the parsing of LANG has to go.
> tds_get_locale() looks mostly wrong, but it's a little hard to untangle.
> All that really has to happen is to canonicalize the value returned by
> tds_alloc_locale() and overwrite that with whatever is read from
> the configuration files.
>
> (The setlocale(3) stuff arguably should be in tds_get_locale(). I wouldn't
> argue if it got moved there.)
>

freddy77






Archive powered by MHonArc 2.6.24.

Top of Page