Skip to Content.
Sympa Menu

freetds - [freetds] iconv status

freetds AT lists.ibiblio.org

Subject: FreeTDS Development Group

List archive

Chronological Thread  
  • From: "Lowden, James K" <LowdenJK AT bernstein.com>
  • To: 'TDS Development Group' <freetds AT lists.ibiblio.org>
  • Subject: [freetds] iconv status
  • Date: Wed, 2 Jul 2003 09:51:46 -0400

Last weekend I wrote a simple replacement iconv library to meet FreeTDS's
most basic requirements: convert ISO-8859-1 (and 7-bit ASCII) to and from
UCS-2. It will allow FreeTDS to work as advertized, to connect to any TDS
server without libiconv. It also means we'll need very few #if HAVE_ICONV
tests in the code, because iconv() will be present in some form. Whether or
not it's sufficient for the client's purpose becomes a runtime question:
Does it return a valid descriptor for a charset pair?

CVS code now compiles without linking to an iconv library. It works with
TDS 5.0 servers. (!)

With TDS 7.0, I haven't been able to log in yet. The problem appears to be
in tds_iconv(), which I had begun to rewrite; I want to make it more similar
to iconv(3) and fix its error handling. Its current signature is awkward to
use, so I prefer to finish my rewrite first, and then see what's up with my
trivial iconv.

Frediano: I had to do something a bit weird with tds_iconv_init(). It was
testing for UTF-8, which my replacement doesn't support. I changed the
interrogation code to try to convert to ASCII instead, which seems to serve
the same purpose without imposing any arbitrary requirements.

--jkl

-----------------------------------------
The information contained in this transmission may contain privileged and
confidential information and is intended only for the use of the person(s)
named above. If you are not the intended recipient, or an employee or agent
responsible for delivering this message to the intended recipient, any
review, dissemination, distribution or duplication of this communication is
strictly prohibited. If you are not the intended recipient, please contact
the sender immediately by reply e-mail and destroy all copies of the original
message. Please note that we do not accept account orders and/or instructions
by e-mail, and therefore will not be responsible for carrying out such orders
and/or instructions.





  • [freetds] iconv status, Lowden, James K, 07/02/2003

Archive powered by MHonArc 2.6.24.

Top of Page