public inbox for cygwin@cygwin.com
 help / color / mirror / Atom feed
From: Eric Blake <eblake@redhat.com>
To: cygwin@cygwin.com
Subject: Re: CR-LF handling behavior of SED changed recently - this breaks a lot of MinGW cross build scripts
Date: Sun, 11 Jun 2017 02:31:00 -0000	[thread overview]
Message-ID: <3100fec0-bed0-f2fd-fe3c-11e5580d80f0@redhat.com> (raw)
In-Reply-To: <dfe98b04-27cf-af72-5e96-7a65460c1e53@gmail.com>


[-- Attachment #1.1: Type: text/plain, Size: 616 bytes --]

On 06/10/2017 08:48 AM, cyg Simple wrote:

> 
> Uhm, 'wt' and 'wb' came from MS itself.

Not quite. fopen(,"wb") comes from POSIX.  "wb" is probably a microsoft
extension, but it is certainly not in POSIX nor in glibc.

>  GNU GCC was adapted to allow it

Huh? It's not whether the compiler allows it, but whether libc allows
it.  ALL libc that are remotely close to POSIX compliant support
fopen(,"wb"), but only Windows platforms (and NOT glibc) support
fopen(,"wt").

-- 
Eric Blake, Principal Software Engineer
Red Hat, Inc.           +1-919-301-3266
Virtualization:  qemu.org | libvirt.org


[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 604 bytes --]

  parent reply	other threads:[~2017-06-11  2:31 UTC|newest]

Thread overview: 37+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-06-07 16:23 Soegtrop, Michael
2017-06-07 17:23 ` Eric Blake
2017-06-07 19:26   ` Brian Inglis
2017-06-08  8:50   ` Soegtrop, Michael
2017-06-08 13:31     ` Vince Rice
2017-06-08 14:52       ` Soegtrop, Michael
2017-06-08 15:04       ` Eric Blake
2017-06-08 15:08     ` Eric Blake
2017-06-08 17:34       ` cyg Simple
2017-06-08 18:51     ` L A Walsh
2017-06-08 19:57       ` Eric Blake
2017-06-09  8:14         ` Soegtrop, Michael
2017-06-09 14:06           ` cyg Simple
2017-06-09 15:01             ` Soegtrop, Michael
2017-06-09 15:35               ` Andrey Repin
2017-06-09 15:51               ` Eric Blake
2017-06-09 16:56                 ` Soegtrop, Michael
2017-06-09 18:42                   ` Hans-Bernhard Bröker
2017-06-09 19:30                     ` Erik Soderquist
2017-06-09 22:28                     ` Soegtrop, Michael
2017-06-09 22:43                       ` Harvey Stein
2017-06-09 23:16                       ` Ray Donnelly
2017-06-10 13:48                 ` cyg Simple
2017-06-10 14:21                   ` Hans-Bernhard Bröker
2017-06-11  2:31                   ` Eric Blake [this message]
2017-06-13 14:11                     ` cyg Simple
2017-06-13 17:34                       ` Brian Inglis
2017-06-14 16:07                         ` cyg Simple
2017-06-14 19:04                           ` Brian Inglis
2017-06-10 13:42               ` cyg Simple
2017-06-09 13:50     ` Brian Inglis
2017-06-09 15:05       ` Soegtrop, Michael
2017-06-09 15:35         ` Andrey Repin
2017-06-09 15:50           ` Dan Kegel
2017-06-09 16:09             ` Soegtrop, Michael
2017-06-10 21:09               ` Brian Inglis
2017-06-09 15:56           ` Eric Blake

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=3100fec0-bed0-f2fd-fe3c-11e5580d80f0@redhat.com \
    --to=eblake@redhat.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).