freetds AT lists.ibiblio.org
Subject: FreeTDS Development Group
List archive
- From: jklowden AT schemamania.org
- To: FreeTDS Development Group <freetds AT lists.ibiblio.org>
- Subject: Re: [freetds] SQL Server version and TDS Version
- Date: Fri, 30 Apr 2010 16:30:32 -0400
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.
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.)
--jkl
-
Re: [freetds] SQL Server version and TDS Version
, (continued)
-
Re: [freetds] SQL Server version and TDS Version,
Vinh Nguyen, 04/19/2010
-
Re: [freetds] SQL Server version and TDS Version,
Vinh Nguyen, 04/20/2010
-
Re: [freetds] SQL Server version and TDS Version,
jklowden, 04/20/2010
-
Re: [freetds] SQL Server version and TDS Version,
Vinh Nguyen, 04/20/2010
-
Re: [freetds] SQL Server version and TDS Version,
jklowden, 04/20/2010
- Re: [freetds] SQL Server version and TDS Version, Vinh Nguyen, 04/20/2010
- Re: [freetds] SQL Server version and TDS Version, Vinh Nguyen, 04/27/2010
- Re: [freetds] SQL Server version and TDS Version, Craig A. Berry, 04/30/2010
- [freetds] [PATCH] reorder charset handlling in tsql (Re: SQL Server version and TDS Version), Craig A. Berry, 04/30/2010
- Re: [freetds] SQL Server version and TDS Version, jklowden, 04/30/2010
- Re: [freetds] SQL Server version and TDS Version, jklowden, 04/30/2010
- Re: [freetds] SQL Server version and TDS Version, Craig A. Berry, 04/30/2010
-
Re: [freetds] SQL Server version and TDS Version,
jklowden, 04/20/2010
-
Re: [freetds] SQL Server version and TDS Version,
Vinh Nguyen, 04/20/2010
-
Re: [freetds] SQL Server version and TDS Version,
jklowden, 04/20/2010
-
Re: [freetds] SQL Server version and TDS Version,
Vinh Nguyen, 04/20/2010
-
Re: [freetds] SQL Server version and TDS Version,
Vinh Nguyen, 04/19/2010
Archive powered by MHonArc 2.6.24.