On Fri, 2 Nov 2001, Christoph Reichenbach wrote: > > How do we know if fd has been opened in ASCII or binary mode? Why isn't > > fopen or open used here? > > Because creat() is easier to read, IMO. I don't know if any additional > stuff has to be done on Win32; when trying to debug some sound problems on > it, Matt tested this and reported that changing it didn't help. > Of course this doesn't mean that it's neccessarily correct; you might want > to have a look at the Win32 docs and change it, if neccessary (please > notify us if you do so that we know how/why creat() should be called > differently/avoided on Win32).
You can't specify Binary mode using creat on win32, _open should be used instead. I changed my local copy to ifdef the creat our for win32 and use _open instead, but haven't checked it in yet. I'm sure it would fix some problems, it just didn't correct the CB1 bug I was hunting at the time :) I'll check in this fix later today. -- http://www.clock.org/~matt
