Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com Message-Id: <200207011615.g61GFTZ06273@etp1.bitmover.com> Content-Type: text/plain; charset="iso-8859-15" From: Andrew Chang To: cygwin AT cygwin DOT com Subject: FYI: cygwin1.3.11 and ssh Date: Mon, 1 Jul 2002 09:15:29 -0700 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Hi, After I switched from cygwin1.3.10 to cygwin1.3.11-3, I notice ssh starts doing output in text mode. My win32 apps start ssh as sub process and talk to it via a pipe. This causes problem for my win32 apps because it uses ssh to transfer a data stream with control characters. I tracked the problem to a binary-mode/text-mode problem. I ended up adding a setmode(0, _O_BINARY) in the main() of ssh.c, which fixed the problem. I am wondering why cygwin1.3.11-3 default to text mode and the previous version does the oppsite. Is this intentional ? Thanks Andrew Chang BitKeeper Development P.S. please cc your reply to awc AT bitmover DOT com. I am not on this mailing list, thanks. -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Bug reporting: http://cygwin.com/bugs.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/