Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe@cygwin.com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin@cygwin.com>
List-Help: <mailto:cygwin-help@cygwin.com>, <http://sources.redhat.com/ml/#faqs>
Sender: cygwin-owner@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
Delivered-To: mailing list cygwin@cygwin.com
X-AuthUser: gerrit:koeln.convey.de
Date: Sat, 31 May 2003 19:25:09 +0200
From: "Gerrit P. Haase" <gp@familiehaase.de>
Reply-To: "Gerrit P. Haase" <gp@familiehaase.de>
Organization: Esse keine toten Tiere
X-Priority: 3 (Normal)
Message-ID: <181879373392.20030531192509@familiehaase.de>
To: "Max Bowsher" <maxb@ukf.net>
CC: cygwin@cygwin.com
Subject: Re: Should PERLIO=no_crlf be the default on Cygwin?
In-Reply-To: <00bd01c32775$71086ba0$78d96f83@pomello>
References: <001601c324fc$16d4f700$6500a8c0@ufo>
 <002901c32504$947701f0$78d96f83@pomello>
 <68785452711.20030530171948@familiehaase.de>
 <007101c326c2$c1f8e110$78d96f83@pomello>
 <9855017610.20030531123913@familiehaase.de>
 <00bd01c32775$71086ba0$78d96f83@pomello>
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit

Hallo Max,

Am Samstag, 31. Mai 2003 um 15:06 schriebst du:

>>> I know very little about perlio, but wouldn't defaulting to stdio cause
>>> Perl to obey Cygwin mount modes?

>> From perlrun.pod:
>> "An unset or empty PERLIO is equivalent to :stdio."

>> The problem is that it will be superseeded for platforms where
>> O_BINARY and O_TEXT differs as it is e.g. for DOS or CYGWIN.

> OK, so the fix is to prevent whatever superseding you mention above
> from happening?

Yes.  In the perl source is defined if a system that defines O_TEXT
with a different value as O_BINARY kind of DOSISH, then the :crlf
PerlIO layer will be used.  That is to override the default :stdio
layer (as it is on unix).  If I change it to be Cygwin != DOSISH, then
the standard Unix layer :stdio will be used if no environmet setting
overrides it and every other layer like e.g. :perlio, :crlf or :utf8
may be pulled in by request. 
I think this is what we want.


Gerrit
-- 
=^..^=


--
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/

