rsync no longer preserves extended ASCII characters after 1.7 upgrade

Adam Rosi-Kessel adam@rosi-kessel.org
Mon Dec 28 22:51:00 GMT 2009


Andy Koppe wrote, on 12/28/2009 2:12 AM:
> Yes, that's one way. Specifying e.g. 'LC_CTYPE=en_US rsync ...' (i.e.
> a language without an explicit character set) will give you the ANSI
> codepage.

Thanks! This fixes it perfectly for me.

> 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.

This doesn't seem to work. I think I need utf-8 rather than utf8. 
Otherwise I get:

iconv_open("UTF-8", "utf8") failed

But if I set RSYNC_ICONV='utf-8,iso8859-1' (or 'utf-8,iso88591', which 
also seems to work) I get errors like this:

[generator] cannot convert filename: [path with extended chars] (Invalid 
or incomplete multibyte or wide character)

The LC_CTYPE thing seems to work, so I'm satisfied, but I thought I 
should report out that iconv per your suggestion didn't work.

Adam


--
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



More information about the Cygwin mailing list