www.delorie.com/archives/browse.cgi | search |
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 <steve+cygwin AT monai DOT ca> |
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> |
X-IsSubscribed: | yes |
Mailing-List: | contact cygwin-help AT cygwin DOT com; run by ezmlm |
List-Id: | <cygwin.cygwin.com> |
List-Subscribe: | <mailto:cygwin-subscribe AT cygwin DOT com> |
List-Archive: | <http://sourceware.org/ml/cygwin/> |
List-Post: | <mailto:cygwin AT cygwin DOT com> |
List-Help: | <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs> |
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=<local-charset>,<remote-charset>.] 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
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |