X-Spam-Check-By: sourceware.org Date: Thu, 22 Feb 2007 11:29:31 +0100 From: Corinna Vinschen To: cygwin AT cygwin DOT com Subject: Re: Why binary mode? Message-ID: <20070222102931.GE15002@calimero.vinschen.de> Reply-To: cygwin AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com References: <45DD6C91 DOT 5040406 AT hima DOT com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <45DD6C91.5040406@hima.com> User-Agent: Mutt/1.4.2.2i Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm Precedence: bulk List-Id: List-Unsubscribe: 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 On Feb 22 11:12, Sven Severus wrote: > $ mount > c:\cygwin\usr\X11R6\lib\X11\fonts on /usr/X11R6/lib/X11/fonts type > system (binmode) > C:\cygwin\bin on /usr/bin type system (textmode) > C:\cygwin\lib on /usr/lib type system (textmode) > c:\cygwin\tmp on /tmp type system (binmode) > C:\cygwin on / type system (textmode) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ Your home is mounted textmode. > c: on /c type system (textmode) > $ pwd > /home/es_sv > $ echo peng >p.txt && CO=$(cat p.txt) && od -c <<<"$CO" > 0000000 p e n g \r \n > 0000006 Which explains this behaviour. The tools are using the default mode, which is textmode in your case. I suggest replacing all textmode mounts with binmode mounts. 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/