This is the mail archive of the cygwin mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: rsync no longer preserves extended ASCII characters after 1.7 upgrade


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]