iconv problem

Charles Wilson cygwin@cwilson.fastmail.fm
Sun May 20 19:34:00 GMT 2012

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.


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

More information about the Cygwin mailing list