delorie.com/archives/browse.cgi | search |
X-Spam-Check-By: | sourceware.org |
Date: | Tue, 23 May 2006 00:12:21 -0700 |
From: | Yitzchak Scott-Thoennes <sthoenna AT efn DOT org> |
To: | cygwin AT cygwin DOT com |
Subject: | Re: perl reading ^M on text mounts |
Message-ID: | <20060523071221.GB756@efn.org> |
References: | <3E1FDC960FE04A4E96892B9023622A4E06A6FC96 AT de010369 DOT de DOT ina DOT com> <44491015 DOT 4060504 AT gmail DOT com> <loom DOT 20060423T133814-102 AT post DOT gmane DOT org> |
Mime-Version: | 1.0 |
In-Reply-To: | <loom.20060423T133814-102@post.gmane.org> |
User-Agent: | Mutt/1.4.2.1i |
X-IsSubscribed: | yes |
Mailing-List: | contact cygwin-help AT cygwin DOT com; run by ezmlm |
List-Unsubscribe: | <mailto:cygwin-unsubscribe-archive-cygwin=delorie DOT com AT cygwin DOT com> |
List-Subscribe: | <mailto:cygwin-subscribe AT cygwin DOT com> |
List-Archive: | <http://sourceware.org/ml/cygwin/> |
List-Post: | <mailto:cygwin AT cygwin DOT com> |
List-Help: | <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs> |
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 Sun, Apr 23, 2006 at 12:28:52PM +0000, Michael Lemke wrote: > Dave <kilroyd <at> googlemail.com> writes: > > > > > Have you tried setting the environment variable PERLIO? I'm not a heavy > > PERL user, but I tend to have > > > > PERLIO=crlf > > > > if I'm likely to see CRLFs. > > Thanks, I tried that. It indeed seems to remove the \r but independent of the > mount mode of the disk. I googled a bit and found an old thread about this > where Max Bowsher sums it up in http://www.mail-archive.com/cygwin AT cygwin DOT com/ > msg22668.html What a mess. And no solution it seems. The perl docs say a > simple open X, file; opens the file in text mode. So I expect the subsequent > read (and chomp) to treat a \r according to mount mode of the file system. > PERLIO=crlf changes it for all files. Is it just me or do other people also > feel this is broken? Yes, it's broken, but with no good solution that I know of. -- 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/
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |