C++ Logo

liaison

Advanced search

Re: [wg14/wg21 liaison] fopen 'x', 'a' and 'p'

From: Joseph Myers <joseph_at_[hidden]>
Date: Mon, 6 Jun 2022 16:51:17 +0000
On Fri, 3 Jun 2022, Niall Douglas via Liaison wrote:

> > As a separate issue, I think that illustrates that the list of possible
> > mode strings is already too long and we need to restructure it to describe
> > the possible elements / ordering of those elements in such a string,
> > rather than increasing it to list now 25 possible combinations
> > individually.
>
> Is that not risky given how close to IS release we now are?
>
> What ISO C ought to do is what POSIX is doing, which I attach below, and
> thanks to Nick Stoughton for supplying the current change delta for POSIX.
>
> Surely it is a bit radical at this late stage?

I think it's inventing 'p' that's a bit radical at this late stage, and we
should simply fix the specification of 'x' to reflect what was intended,
without adding 'p' (and then consider further changes for the next release
after C23).

-- 
Joseph S. Myers
joseph_at_[hidden]

Received on 2022-06-06 16:51:23