bug-gnu-libiconv
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[bug-gnu-libiconv] please help me!


From: Gao,Sun
Subject: [bug-gnu-libiconv] please help me!
Date: Mon, 10 Dec 2007 08:35:52 +0800

Dear sir or madame,

I encounter a big problem with ICONV,I need your help;

In http://www.gnu.org/software/libiconv/documentation/libiconv/iconv.3.html

It says,

1. An invalid multibyte sequence is encountered in the input. In this case it sets errno to EILSEQ and returns (size_t)(-1). *inbuf is left pointing to the beginning of the invalid multibyte sequence.

 

 

2. The input byte sequence has been entirely converted, i.e. *inbytesleft has gone down to 0. In this case iconv returns the number of non-reversible conversions performed during this call.

 

 

3. An incomplete multibyte sequence is encountered in the input, and the input byte sequence terminates after it. In this case it sets errno to EINVAL and returns (size_t)(-1). *inbuf is left pointing to the beginning of the incomplete multibyte sequence.

 

 

4. The output buffer has no more room for the next converted character. In this case it sets errno to E2BIG and returns (size_t)(-1).

 

But I write a simple program use Microsoft visual 6.0.

The return is (size_t)(-1),but the errno does not change.I am fuzzy.

Please help me.

 

Regards,

Sun,gao

  

  

 

Attachment: testiconv.rar
Description: Binary data


reply via email to

[Prev in Thread] Current Thread [Next in Thread]