delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2008/04/04/07:25:55

X-Recipient: archive-cygwin AT delorie DOT com
X-Spam-Check-By: sourceware.org
Date: Fri, 4 Apr 2008 14:25:23 +0200
From: Corinna Vinschen <corinna-cygwin AT cygwin DOT com>
To: cygwin AT cygwin DOT com
Subject: Re: using rsync with Win32/UNC pathnames?
Message-ID: <20080404122523.GC5532@calimero.vinschen.de>
Reply-To: cygwin AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
References: <47F22BD6 DOT 3040801 AT wpkg DOT org> <47F22DF5 DOT 6020108 AT byu DOT net> <20080401124823 DOT GQ4468 AT calimero DOT vinschen DOT de> <47F23164 DOT 8040604 AT wpkg DOT org> <23fce8e60804011425q1342c521y6849a8e405480389 AT mail DOT gmail DOT com> <47F371B6 DOT 3050107 AT wpkg DOT org> <47F539B6 DOT 3961D2ED AT dessent DOT net> <20080403204802 DOT GE4468 AT calimero DOT vinschen DOT de> <47F61584 DOT 9020200 AT wpkg DOT org> <47F61B74 DOT 7060402 AT wpkg DOT org>
MIME-Version: 1.0
In-Reply-To: <47F61B74.7060402@wpkg.org>
User-Agent: Mutt/1.5.16 (2007-06-09)
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Unsubscribe: <mailto:cygwin-unsubscribe-archive-cygwin=delorie DOT com AT cygwin DOT 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 Apr  4 14:13, Tomasz Chmielewski wrote:
> Tomasz Chmielewski schrieb:
>> Corinna Vinschen schrieb:
>>> On Apr  3 13:10, Brian Dessent wrote:
>>>> Tomasz Chmielewski wrote:
>>>>
>>>>> So once Cygwin learns how to speak UTF-8, I will finally be able to
>>>>> backup all Windows files... :)
>>>> Set CYGWIN=codepage:utf8 to enable UTF-8 support.
>>>
>>> ...and set LC_CTYPE=C-UTF-8, otherwise multibyte/wide char aware
>>> application don't convert UTF-8 strings correctly from multibyte to
>>> wide char and vice versa.
>> It works, but again, only locally.
>> Is there a way to tell these variables to a cygwin service (i.e., rsyncd 
>> started with cygrunsrv?).
>> I tried to set them as a global variable (System -> Advanced -> 
>> Environment variables), started new console, restarted rsyncd service with 
>> cygrunsrv, but it doesn't have any effect on rsyncd service - files with 
>> UTF-8 characters still fail to transfer (file has vanished).
>> This time, I used rsync 3.0.0 binary on a Linux server, so it's not a 
>> problem with an old protocol etc.
>
> Probably the whole Windows machine needs to be restarted if we add new 
> system variables?

If you change system variables, you have to reboot, because services
inherit their variables from the SCM, which only gets restarted when
you reboot.

However, there is no need for that.  Did you try `cygrunsrv --help', or
better, read /usr/share/doc/Cygwin/cygrunsrv.README lately?  Look for
the -e option.


Corinna

-- 
Corinna Vinschen                  Please, send mails regarding Cygwin to
Cygwin Project Co-Leader          cygwin AT cygwin DOT com
Red Hat

--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

- Raw text -


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