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 7:56 PM, Adam Rosi-Kessel wrote:
> Adam Rosi-Kessel wrote, on 12/27/2009 10:41 PM:
>> I'm running cygwin on a WinXP system with an NTFS-formatted drive. I
>> have a script that regularly backs up using rsync onto a Linux system
>> (Debian) with an ext3 drive.
>>
>> Before the recent major upgrade, all extended ASCII characters were
>> preserved perfectly without any special rsync switches. E.g., é stayed
>> as é (assuming that character will survive this mailing list post --
>> accented e).
>>
>> Now, all accented characters appear as ? on the target linux system.
> 
> Actually, this is a little more complicated than I thought. When I mount
> the rsync target linux drive as a Samba share from the WinXP box, the
> files appear to have the correct accents on the destination. But when I
> view them from the linux box, they have scrambled accents -- either just
> ?'s if I use ls (must be a terminal issue), or different nonstandard
> characters that aren't the right extended characters if I redirect the
> output to a file and then view that.
> 
> I'm just trying to get back the behavior from before the upgrade. Thanks
> for any suggestions.

Assuming you upgraded from 1.5.x to 1.7.1, Cygwin has new default
locale/charset settings that affect filename handling. Have a look at
the Cygwin User Guide, specifically the page on Internationalization, here:

http://cygwin.com/cygwin-ug-net/setup-locale.html

I'm not sure what the default locale/charset was for 1.5.x, but for
1.7.1, it is "C.UTF-8". You may be able to get the old behaviour back by
setting LANG (or LC_ALL or LC_CTYPE) in Cygwin to match the
locale/charset of your Linux system.

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