From: Steven Penny <svnpenn@gmail.com>
To: cygwin@cygwin.com
Subject: Re: [ANNOUNCEMENT] TEST RELEASE: gawk-4.1.4-3
Date: Thu, 16 Feb 2017 02:01:00 -0000 [thread overview]
Message-ID: <58a507ec.cc036b0a.28cf4.47c4@mx.google.com> (raw)
In-Reply-To: <announce.20170214122340.GA25959@calimero.vinschen.de>
On Tue, 14 Feb 2017 13:23:40, Corinna Vinschen wrote:
> this TEST release removes all enforcing of text mode on input.
> Input from pipes is now treated binary-only, input from files
> follows the mount mode setting text/binary.
Works great, thanks.
$ printf 'hello world\r\n' | awk 1 | od -tcx1
0000000 h e l l o w o r l d \r \n
68 65 6c 6c 6f 20 77 6f 72 6c 64 0d 0a
Ironically, Awk is now a portable way to convert line endings, as d2u is not
portable:
printf 'hello world\r\n' | awk '{sub("\r", "")} 1'
printf 'hello world\n' | awk '{sub(/$/, "\r")} 1'
--
Problem reports: http://cygwin.com/problems.html
FAQ: http://cygwin.com/faq/
Documentation: http://cygwin.com/docs.html
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
prev parent reply other threads:[~2017-02-16 2:01 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-02-14 14:36 Corinna Vinschen
2017-02-16 2:01 ` Steven Penny [this message]
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=58a507ec.cc036b0a.28cf4.47c4@mx.google.com \
--to=svnpenn@gmail.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).