X-Recipient: archive-cygwin AT delorie DOT com X-SWARE-Spam-Status: No, hits=-7.1 required=5.0 tests=AWL,BAYES_00,DKIM_SIGNED,DKIM_VALID,KHOP_RCVD_TRUST,KHOP_THREADED,RCVD_IN_DNSWL_LOW,RCVD_IN_HOSTKARMA_W,RCVD_IN_HOSTKARMA_WL X-Spam-Check-By: sourceware.org Message-ID: <4FB9472C.9010307@cwilson.fastmail.fm> Date: Sun, 20 May 2012 15:34:04 -0400 From: Charles Wilson User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.0; en-US; rv:1.8.1.23) Gecko/20090812 Thunderbird/2.0.0.23 Mnenhy/0.7.6.666 MIME-Version: 1.0 To: Cygwin Mailing List Subject: Re: iconv problem References: <20120519172911 DOT 576 AT binki> In-Reply-To: <20120519172911.576@binki> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com On 5/19/2012 3:29 AM, wynfield AT gmail DOT 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