public inbox for cygwin@cygwin.com
 help / color / mirror / Atom feed
From: "Ian Puleston" <ian@underpressuredivers.com>
To: <cygwin@cygwin.com>
Subject: Perl bug with DOS file line endings?
Date: Wed, 10 Jan 2001 14:04:00 -0000	[thread overview]
Message-ID: <BKEPJOHOPEADOFCGNACCOEANCMAA.ian@underpressuredivers.com> (raw)

Perl 5.6.1-1 seems to get confused as to whether its processing a DOS or
Unix format file, depending on what shell it is run under. I'm using it in
Windows 2000 to process a DOS format source file with line endings 0D0A
(\r\n):

When it is run directly from a DOS command prompt it works as expected and
produces an output file with line endings 0D0A.

When it is run from either bash or make initiated from a DOS command prompt,
then it produces an output file with line endings 0D0D0A (\r\r\n). It seems
that in this case it thinks that it is processing a Unix file, and has added
a 0D to change from the Unix 0A line ending to the DOS 0D0A.

I'm using CygWin make 3.79-3 and bash 2.04-5.



--
Want to unsubscribe from this list?
Check out: http://cygwin.com/ml/#unsubscribe-simple

             reply	other threads:[~2001-01-10 14:04 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2001-01-10 14:04 Ian Puleston [this message]
2001-01-11  9:58 ` David M. Karr
     [not found] <BKEPJOHOPEADOFCGNACCOEDFCMAA.ipuleston@tutsys.com>
2001-01-11 16:12 ` Ian Puleston

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=BKEPJOHOPEADOFCGNACCOEANCMAA.ian@underpressuredivers.com \
    --to=ian@underpressuredivers.com \
    --cc=cygwin@cygwin.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).