Skip to Content.
Sympa Menu

freetds - Re: [freetds] Charset question

freetds AT lists.ibiblio.org

Subject: FreeTDS Development Group

List archive

Chronological Thread  
  • From: Frediano Ziglio <freddyz77 AT tin.it>
  • To: FreeTDS Development Group <freetds AT lists.ibiblio.org>
  • Subject: Re: [freetds] Charset question
  • Date: Thu, 13 Apr 2006 08:51:43 +0200

Il giorno mer, 12/04/2006 alle 21.54 -0400, James K. Lowden ha scritto:
> Hi Freddy,
>
> Frediano Ziglio wrote:
> >
> > Well, I think it's wrong since... 3 or 4 years ago. Good spot! At this
> > point however should we fix this?
>
> I'm not sure. For now, I think we should fix the documentation for
> locales.conf.
>

Updated a bit, I don't know if is it what you think about...

> > About locales.conf, freetds.conf, client charset, etc. I think there is
> > a lot of confusion... For instance is not true that client charset (only
> > in freetds.conf) is use only with TDS 7+. If charset is not given
> > FreeTDS try to match charset for Sybase using client charset.
>
> We use libiconv only for TDS7+. That's what I meant.
>
> I haven't completely traced how freetds.conf's 'client charset' gets used
> for a TDS 5.0 connection. Can our friend do this in freetds.conf?
>
> [default]
> client charset = iso_1
>
> I'm not sure what you mean by "If charset is not given".
>

in src/tds/login.c

/* use charset nearest to client or nothing */
server_charset = NULL;
if (!tds_dstr_isempty(&connection->server_charset))
server_charset = tds_dstr_cstr(&connection->server_charset);
else
server_charset =
tds_sybase_charset_name(tds_dstr_cstr(&connection->client_charset));
if (!server_charset)
server_charset = "";

freddy77






Archive powered by MHonArc 2.6.24.

Top of Page