delorie.com/archives/browse.cgi | search |
Mailing-List: | contact cygwin-help AT cygwin DOT com; run by ezmlm |
List-Subscribe: | <mailto:cygwin-subscribe AT cygwin DOT com> |
List-Archive: | <http://sources.redhat.com/ml/cygwin/> |
List-Post: | <mailto:cygwin AT cygwin DOT com> |
List-Help: | <mailto:cygwin-help AT cygwin DOT com>, <http://sources.redhat.com/ml/#faqs> |
Sender: | cygwin-owner AT cygwin DOT com |
Delivered-To: | mailing list cygwin AT cygwin DOT com |
From: | "Gerrit P. Haase" <gerrit DOT haase AT convey DOT de> |
To: | "=?ISO-8859-1?Q?J=F6rg_Schaible?=" <joerg DOT schaible AT gmx DOT de>, |
<cygwin AT cygwin DOT com> | |
Date: | Wed, 23 Jan 2002 16:59:50 +0100 |
MIME-Version: | 1.0 |
Subject: | Re: perl & textmode mounts |
Reply-to: | gerrit DOT haase AT convey DOT de |
Message-ID: | <3C4EEC06.24722.7BA662@localhost> |
In-reply-to: | <001a01c1a396$028cfa60$070da8c0@pucki> |
X-mailer: | Pegasus Mail for Windows (v4.01) |
X-MIME-Autoconverted: | from Quoted-printable to 8bit by delorie.com id g0NFujY29485 |
Am 22 Jan 2002 um 23:41 hat Jörg Schaible geschrieben: >there seems still an issue concerning textmode mounts and perl. This will be resolved in the next Perl release (5.8) where Perl uses its own IO (perlio). > a trailing \cM. My perl script itself is in a directory mounted in > textmode. Please use binmode for the files (scripts) and the mounts. >I used the Perl debugger to locate the problems: [...] >According to "perldoc -f binmode" I should be able to set textmode manually using >binmode( $in_fh, ":crlf" ); >directly after the open command. I modified Parser.pm accordingly. Unfortunately >this had no effect either. I assume the Perl build does not know about >running in Windows, so it ignores binmode() totally as documented. binmode() is not ignored on Cygwin. Cygwin is not Win32! Basically spoken: Perl on Cygwin works only correct if the files you are working with are in binmode and if you do it on binmode mounts. E.g. pod2html fails on textmode pods, regardless which type the mounts are. >Only if I save my perl script in Unix format (on the textmode mount !!) it works >as expected! Unfortunately *this* will scramble the checkin/checkout with > CVS :( Huh? I thought there are some problems using CVS with textmode files, but not with binmode? >Since the Perl sources are quite big - has anybody a clue where to start looking >for this bug ? Hmmm, there is this flag in perl.h, look for CYGWIN in perl.h, I tried to debug why it doesn't work as expected, but I didn't found the bug :( Gerrit -- =^..^= -- 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 |