This is the mail archive of the glibc-bugs@sourceware.org mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug stdio/12836] fmemopen(buf,size,"w+b") isn't binary


https://sourceware.org/bugzilla/show_bug.cgi?id=12836

--- Comment #7 from Eric Blake <eblake at redhat dot com> ---
(In reply to Eric Blake from comment #6)

> > So, technically, I think an implementation _could_ treat w+b and wb+ as
> > different if it so desired but it would have to document that.
> > 
> > Of course, it would probably be easier to fix the code to make them
> > identical :-)
> 
> No, we WANT them to be different, per the adjustments to POSIX.

Sorry, speaking too soon. We want 'w' and 'wb' to be different; but we want
'w+b' and 'wb+' to be identical, as that is what the next version of POSIX will
require.  Glibc has to be fixed before it will comply with what is written in
POSIX bug 456.

-- 
You are receiving this mail because:
You are on the CC list for the bug.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]