public inbox for cygwin@cygwin.com
 help / color / mirror / Atom feed
* [ANNOUNCEMENT] TEST RELEASE: gawk-4.1.4-3
@ 2017-02-14 14:36 Corinna Vinschen
  2017-02-16  2:01 ` Steven Penny
  0 siblings, 1 reply; 2+ messages in thread
From: Corinna Vinschen @ 2017-02-14 14:36 UTC (permalink / raw)
  To: cygwin

I've just uploaded the TEST release gawk 4.1.4-3.

Per the discussion started in this thread in the cygwin mailing list:

  https://cygwin.com/ml/cygwin/2017-02/msg00155.html

especially the arguments given in

  https://cygwin.com/ml/cygwin/2017-02/msg00175.html

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.

Other than that, it's the same as 4.1.4-2.

Please test.


Thanks,
Corinna

-- 
Corinna Vinschen                  Please, send mails regarding Cygwin to
Cygwin Developer                                cygwin AT cygwin DOT com
Red Hat, Inc.

--
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

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [ANNOUNCEMENT] TEST RELEASE: gawk-4.1.4-3
  2017-02-14 14:36 [ANNOUNCEMENT] TEST RELEASE: gawk-4.1.4-3 Corinna Vinschen
@ 2017-02-16  2:01 ` Steven Penny
  0 siblings, 0 replies; 2+ messages in thread
From: Steven Penny @ 2017-02-16  2:01 UTC (permalink / raw)
  To: cygwin

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

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2017-02-16  2:01 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-02-14 14:36 [ANNOUNCEMENT] TEST RELEASE: gawk-4.1.4-3 Corinna Vinschen
2017-02-16  2:01 ` Steven Penny

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).