| 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: | <200110161309.OAA23268@hawaii.dcs.gla.ac.uk> |
| From: | Reuben Thomas <rrt AT sc3d DOT org> |
| Reply-To: | rrt AT dcs DOT gla DOT ac DOT uk |
| Organization: | University of Glasgow |
| To: | cygwin AT cygwin DOT com |
| Subject: | Perl gets \r in strings even in text mode |
| Date: | Tue, 16 Oct 2001 14:09:01 +0100 |
| X-Mailer: | KMail [version 1.3.1] |
| MIME-Version: | 1.0 |
I'm currently having problems with Perl returning strings with CRLFs in
rather than just LFs, even when read in text mode, from a text-mode mount
point.
For example, the following script:
#! /usr/bin/perl
while (<>) {
if (m/\r\n/) { print "CRLF\n"; }
}
when saved to test.pl and run on a normal multi-line DOS text file prints
"CRLF" lots of times, even when run on a DOS text file in a
text-mode-mounted directory.
This is repeatable on different machines; I'm using cygwin-1.3.2-1 (not the
latest, I know, but 1,3.3 has serious problems for me because of the
segfault-triggered-by-recursive-make bug) and perl-5.6.1-2.
--
http://sc3d.org/rrt/ | Si hoc legere scis nimium eruditionis habes (Anon)
--
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 |