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: using rsync with Win32/UNC pathnames?


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/


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