Skip to Content.
Sympa Menu

freetds - Re: [freetds] freebcp patch for charset

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] freebcp patch for charset
  • Date: Mon, 20 Jul 2009 16:01:50 +0200

2009/7/20 <jklowden AT schemamania.org>:
> On Mon, Jul 20, 2009 at 11:43:03AM +0200, Frediano Ziglio wrote:
>> Does this patch seems resonable ??
>
> Yes!
>
> Sybase bcp uses -J, but I think -C might be better.  I don't know what "J"
> would stand for, and your -C works slightly differently.
>
> http://manuals.sybase.com/onlinebooks/group-as/asg1250e/util/@Generic__BookTextView/10086;pt=10086
>
> We need to decide how to handle Sybase servers.  TDS 5.0 login packets
> include the client character set.  I think the user should say "-C
> ISO-8859-1" and we should map that to "iso_1".  That way the user provides
> the same charset name regardless of server type, even though in the TDS 5.0
> case it's the server, not libiconv, that performs the conversion.
>
> (Last I checked, we were sending the GNU name for the character set by
> mistake, not Sybase's name.  I don't see a fix for it in ChangeLog.)
>

well... the server version should be used by FreeTDS automatically, if
not we have a bug (but patch apply unchanged)

>> I don't know if proprietary library has an option for this
>
> dbcharsetconv, dbservcharset, dbgetcharset, DBSETLCHARSET.  Or did you mean
> something else?
>

Oh... I means just -J as you told me above.

> I see some of these are missing from api_status.doc.  I'll fix that.
>

bye
freddy77




Archive powered by MHonArc 2.6.24.

Top of Page