[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

Re: svn cannot run with cygwin-sshd

From: Branko Čibej <brane_at_xbc.nu>
Date: 2003-06-08 15:16:49 CEST

Satoshi Nakamura wrote:

>Hi,
>
>I encountered a problem when I run svn with cygwin-sshd. I use svn-0.23.0
>on Windows 2000. I installed cygwin-sshd as a service and tried using
>svnserve over ssh.
>
>When I tried to use svnserve over ssh, I got an error:
>
>
>>$ svn co svn+ssh://localhost/repos
>>svn: Network connection closed unexpectedly
>>svn: Connection closed unexpectedly
>>
>>
>
>So I tried running svnserve over ssh directly, and got an error:
>
>
>>$ ssh localhost svnserve -t
>>svn: error: cannot set console input codepage (code 6)
>>
>>
>
>It seems that calling SetConsoleCP caused this error because there is no
>console bound to the process running in sshd.
>
>I changed the source code (subversion/libsvn_subr/cmdline.c) not to call
>SetConsoleCP and built it, then it worked fine.
>
>

Yes, this is a known problem, see

    http://subversion.tigris.org/issues/show_bug.cgi?id=872

especially the last two comments. Unfortunately, just removing the
SetConsoleCP is a bad idea in general, because then the cmdline client
won't read and write to the console correctly.

-- 
Brane Čibej   <brane_at_xbc.nu>   http://www.xbc.nu/brane/
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Sun Jun 8 15:15:34 2003

This is an archived mail posted to the Subversion Dev mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.