[I18n-sig] iconv codec

Tamito KAJIYAMA kajiyama@grad.sccs.chukyo-u.ac.jp
Wed, 10 Jan 2001 08:40:21 +0900


Martin v. Loewis wrote:
|
| I have checked-in an iconv codec into the practicecodecs/iconv
| directory on SF.

Cool.

| It has been tested only on Linux so far; if you have
| any problems with it, or other comments, please let me know.

I've tested the iconv codec (checked out last night) on two
Linux boxes of mine, one with glibc-2.1.2 and the other with
old libc5 plus libiconv-1.5.1
(http://clisp.cons.org/~haible/packages-libiconv.html).

I have the following error messages on both two platforms:

Python 2.0 (#1, Oct 27 2000, 00:27:59) 
[GCC 2.7.2.3] on linux2
>>> import iconvcodec
>>> unicode("test","euc-jp")
Traceback (most recent call last):
  File "<stdin>", line 1, in ?
  File "iconvcodec.py", line 50, in decode
    return self.decoder.iconv(msg, return_unicode=1),len(msg)
SystemError: new style getargs format but argument is not a tuple
>>> u"test".encode("euc-jp")
Traceback (most recent call last):
  File "<stdin>", line 1, in ?
  File "iconvcodec.py", line 19, in encode
    return self.encoder.iconv(msg),len(msg)
SystemError: new style getargs format but argument is not a tuple
>>> 

What goes wrong?

-- 
KAJIYAMA, Tamito <kajiyama@grad.sccs.chukyo-u.ac.jp>