X-Recipient: archive-cygwin AT delorie DOT com X-SWARE-Spam-Status: No, hits=-1.5 required=5.0 tests=AWL,BAYES_00 X-Spam-Check-By: sourceware.org X-Cloudmark-SP-Filtered: true X-Cloudmark-SP-Result: v=1.0 c=1 a=mefH0ZNVUMIA:10 a=kCKDY91tEBMc+hi4YtGk8Q==:17 a=auCVhw_VQbor26kXHBkA:9 a=q7txPCtQ9n3NkM2ohQmk3COkeI0A:4 Message-ID: <4B39A39D.7010706@monai.ca> Date: Mon, 28 Dec 2009 22:37:17 -0800 From: Steven Monai User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.1.5) Gecko/20091204 Thunderbird/3.0 MIME-Version: 1.0 To: cygwin AT cygwin DOT com Subject: Re: rsync no longer preserves extended ASCII characters after 1.7 upgrade References: <4B3828E1 DOT 4090004 AT rosi-kessel DOT org> <4B382C69 DOT 20706 AT rosi-kessel DOT org> <4B383DCD DOT 80907 AT monai DOT ca> <416096c60912272312p59392560j297422825c5720a3 AT mail DOT gmail DOT com> In-Reply-To: <416096c60912272312p59392560j297422825c5720a3@mail.gmail.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-IsSubscribed: yes 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 2009/12/27 11:12 PM, Andy Koppe wrote: > But I think the --iconv option is the better way. Assuming you want to > stick with ISO-8859-1 on the Linux side, '--iconv utf8,iso88591' > should do the job. Regarding using the '--iconv' option in rsync transfers from Cygwin (charset UTF-8) to Linux (charset ISO-8859-1): I just checked the rsync man page again, and I thought I would follow up with some additional info. If rsync is invoked from the Cygwin side, then the option to use is '--iconv=UTF-8,ISO-8859-1'. Conversely, if invoked from the Linux side, one would use '--iconv=ISO-8859-1,UTF-8'. [The convention is: --iconv=,.] Finally, if both ends of the transfer have sane locale/charset settings, one can simply use '--iconv=.' to tell rsync to automatically determine and apply the appropriate conversion. Incidentally, I ran some sample rsync transfers from Cygwin 1.7.1 (with default locale/charset) to Debian 5.0.3 (set to en_CA.ISO-8859-1), and the '--iconv' option functioned correctly every time. -SM -- -- 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