Skip to Content.
Sympa Menu

freetds - Re: [freetds] replacement iconv

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] replacement iconv
  • Date: Sat, 13 Dec 2003 09:35:41 -0000

Il sab, 2003-12-13 alle 09:38, James K. Lowden ha scritto:
> Freddy,
>
> Nice adding UTF-8 to replacments/iconv. I have just one question:
>
> iconv_t tds_rep_iconv_open(const char *tocode, const char *fromcode);
> size_t tds_rep_iconv(iconv_t cd, const char **inbuf, size_t * inbytesleft,
> char **outbuf, size_t * outbytesleft);
> int tds_rep_iconv_close(iconv_t cd);
> #define iconv_open tds_rep_iconv_open
> #define iconv tds_rep_iconv
> #define iconv_close tds_rep_iconv_close
> #endif /* !HAVE_ICONV */
>
> Why the tds* names? It's an iconv implementation; it should have iconv
> names. Just like our asprintf().
>
> I don't anticipate linking in our iconv *and* a system iconv, so I don't
> see a reason to have two sets of names.
>

Assume your system have iconv in libc but you don't want to use this
version. You configure FreeTDS with --disable-libiconv. A program load
libc and FreeTDS. Now you have two iconv versions. Which iconv version
does another library loaded after FreeTDS one use?

freddy77






Archive powered by MHonArc 2.6.24.

Top of Page