X-Recipient: archive-cygwin@delorie.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@monai.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@cygwin.com
Subject: Re: rsync no longer preserves extended ASCII characters after 1.7   	upgrade
References: <4B3828E1.4090004@rosi-kessel.org> <4B382C69.20706@rosi-kessel.org> 	 <4B383DCD.80907@monai.ca> <416096c60912272312p59392560j297422825c5720a3@mail.gmail.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@cygwin.com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe@cygwin.com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin@cygwin.com>
List-Help: <mailto:cygwin-help@cygwin.com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
Delivered-To: mailing list cygwin@cygwin.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

