This is the mail archive of the cygwin mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: iconv problem


On 5/19/2012 3:29 AM, wynfield@gmail.com wrote:
Either there is a bug in cygwin's "iconv" utility or it's library, or what I am trying is not possible, but it should be possible.

I ran iconv as shown below:

$ iconv -f SJIS -t ISO-2022-JP --byte-subst="<0x%x>" /tmp/td.sjis>/tmp/td.txt

iconv: /tmp/td.sjis:12:2: cannot convert

... What happens is that
The conversion proceeds well until a non-convertable character is found.  It then stops the conversion process completely and closes the output file and prints out the above error message, and returns a 1 error code.

cygwin's iconv application is provided by the libiconv library. What behavior do you see if you perform the same experiment using a linux iconv?


It's possible this is a bug in GNU libiconv, and not specific to cygwin at all.

--
Chuck

--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]