[freetds] Connection Problem iconv

James K. Lowden jklowden at schemamania.org
Mon Mar 14 19:31:51 EST 2005


"Thomas Kasic" <TomaW at gmx.de> wrote:
> 
> I have a Connection Problem with Freetds 0.62.4 on Suse Linux 8.2.
> 
> tsql -H 192.168.20.50 -p 1433 -U user -P pwd
> locale is "C"
> locale charset is "ANSI_X3.4-1968"
> tsql: iconv.c:343: tds_iconv_open: Assertion 'ret == 0' failed.
> Aborted

If you set TDSDUMP, you will see a message telling you that iconv
initialization failed for the ISO-8859-1 or UTF-8 character sets.  It
would seem that the iconv installation is broken.  That's very unusual on
a Linux box.  Does locale(1) show anything for them?  

As a stopgap, "configure --disable-libiconv" may help, if you can live
with its limitations.  

If you want to fix the problem correctly, set TDSDUMP.  Post that log and
the config.log for starters.  That will tell us which charset is the
problem, and maybe something about the configuration.  

--jkl



More information about the FreeTDS mailing list