freetds AT lists.ibiblio.org
Subject: FreeTDS Development Group
List archive
Re: [freetds] [PATCH] tds_get_locale() update (was Re: SQL Server version and TDS Version)
- From: Vinh Nguyen <vinhdizzo AT gmail.com>
- To: FreeTDS Development Group <freetds AT lists.ibiblio.org>
- Subject: Re: [freetds] [PATCH] tds_get_locale() update (was Re: SQL Server version and TDS Version)
- Date: Mon, 24 May 2010 08:56:46 -0700
On Sun, May 23, 2010 at 4:13 PM, Craig A. Berry <craigberry AT mac.com> wrote:
>
> There is no checking to see if the client charset is already set in the
> locale structure, so in effect, locale->client_charset is an appendage that
> is never used for anything. It's already been orphaned so we might as well
> deprecate it.
>
> So the next step is to move the nl_langinfo(CODESET) call out of
> tds_alloc_locale() and into tds_alloc_connection(), replacing the hard-wired
> ISO-8859-1 with what we get by interrogating the locale.
>
> But I think that needs more discussion because anyone with a misconfigured
> locale will suddenly not be able to construct a valid login packet;
> basically we'll be doing at the library level what tsql has been doing for a
> long time at the application level, and which generated the problem report
> that led us down this road in the first place.
Craig: should I pull the latest source to see if things work? Or is
it still work in progress?
Thanks so much!
Vinh
-
[freetds] [PATCH] tds_get_locale() update (was Re: SQL Server version and TDS Version),
Craig A. Berry, 05/23/2010
- Re: [freetds] [PATCH] tds_get_locale() update (was Re: SQL Server version and TDS Version), jklowden, 05/24/2010
- Re: [freetds] [PATCH] tds_get_locale() update (was Re: SQL Server version and TDS Version), Vinh Nguyen, 05/24/2010
- <Possible follow-up(s)>
- Re: [freetds] [PATCH] tds_get_locale() update (was Re: SQL Server version and TDS Version), Craig Berry, 05/24/2010
Archive powered by MHonArc 2.6.24.