This is the mail archive of the
mailing list for the Cygwin project.
Re: iconv problem
- From: Charles Wilson <cygwin at cwilson dot fastmail dot fm>
- To: Cygwin Mailing List <cygwin at cygwin dot com>
- Date: Sun, 20 May 2012 15:34:04 -0400
- Subject: Re: iconv problem
- References: <20120519172911.576@binki>
On 5/19/2012 3:29 AM, email@example.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
Problem reports: http://cygwin.com/problems.html
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple