delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2009/12/28/00:10:51

X-Recipient: archive-cygwin AT delorie DOT com
X-SWARE-Spam-Status: No, hits=-1.4 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=w_pzkKWiAAAA:8 a=pdJ0RCGh-IceAdgLT9sA:9 a=U6TBiStqxtRAZi6RvkwA:7 a=CG5yNzgdMB0dD1GoJgS8LFpvK2kA:4 a=bSC-MnHvYjsA:10
Message-ID: <4B383DCD.80907@monai.ca>
Date: Sun, 27 Dec 2009 21:10:37 -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>
In-Reply-To: <4B382C69.20706@rosi-kessel.org>
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 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

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019