delorie.com/archives/browse.cgi | search |
Mailing-List: | contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm |
List-Subscribe: | <mailto:cygwin-subscribe AT sources DOT redhat DOT com> |
List-Archive: | <http://sources.redhat.com/ml/cygwin/> |
List-Post: | <mailto:cygwin AT sources DOT redhat DOT com> |
List-Help: | <mailto:cygwin-help AT sources DOT redhat DOT com>, <http://sources.redhat.com/ml/#faqs> |
Sender: | cygwin-owner AT sources DOT redhat DOT com |
Delivered-To: | mailing list cygwin AT sources DOT redhat DOT com |
Message-ID: | <008901c107e3$80664080$6464648a@ca.boeing.com> |
From: | "Michael A. Chase" <mchase AT ix DOT netcom DOT com> |
To: | <gp AT familiehaase DOT de>, "Christopher Rath" <christopher AT rath DOT ca> |
Cc: | <cygwin AT cygwin DOT com> |
References: | <012a01c1072c$a263f5e0$83fafea9 AT tiny450> <3B487F01 DOT 20173 DOT 12DF36CB AT localhost> |
Subject: | Re: Perl, text files, & \r |
Date: | Sun, 8 Jul 2001 12:20:11 -0700 |
MIME-Version: | 1.0 |
X-Priority: | 3 |
X-MSMail-Priority: | Normal |
X-Mailer: | Microsoft Outlook Express 5.50.4133.2400 |
X-MimeOLE: | Produced By Microsoft MimeOLE V5.50.4133.2400 |
----- Original Message ----- From: "Gerrit P. Haase" <gp AT familiehaase DOT de> To: "Christopher Rath" <christopher AT rath DOT ca> Cc: <cygwin AT cygwin DOT com> Sent: Sunday, July 08, 2001 06:40 Subject: RE: Perl, text files, & \r > Christopher Rath schrieb am 2001-07-07, 23:13: > > > solution: use of the 'binmode' command. > > Would it help to set the environment settings CYGWIN=binmode ? > > [...] > > I think this should be in the Cygwin FAQ. Why this works can be found on > > pp. 53-55 and 147 of "Programming Perl 2nd Ed." > > Is it a cygwin issue or more a perl one? > You can choice at setup time between 'unix(==binmode)' and > 'windows(==textmode)' mode. > You could mount with '-b' for binmode. > It should work as it does on unixlike systems if you setup > with binmode as default. It's really a portable programming issue which affects Perl, Python, C, ... If you know a file needs to be read or written without text modification, it should be opened in binary mode or set to binary mode as early as possible. The mount and CYGWIN binmode and textmode options are workarounds for programs that didn't take that into account when they were originally written. -- Mac :}) ** I normally forward private questions to the appropriate mail list. ** Give a hobbit a fish and he eats fish for a day. Give a hobbit a ring and he eats fish for an age. -- 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/
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |