Message-ID: <3371FE0C.172C@bo.dada.it> Date: Thu, 08 May 1997 18:23:41 +0200 From: Diego Zuccato Organization: CyberSpace Software Labs BBS MIME-Version: 1.0 To: Eli Zaretskii CC: djgpp-workers AT delorie DOT com Subject: Re: write() modified to handle __FSEXT funcs on text files References: Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Precedence: bulk Eli Zaretskii wrote: > Now, when you say open ("blabla", O_RDONLY | O_BINARY), all systems will > be happy. > If you want to be friendly to Win32 compilers, check for _O_BINARY and > define O_BINARY to be _O_BINARY if O_BINARY isn't defined. Code copied to clipboard :-) Tks. [...] > same person both decides how to open the file and installs his/her FSEXT > hook. Ok. I'll modify it to have a conversion only in 'normal' files... > I think that conversion NL -> CR-LF is so easy that any FSEXT hook that > really needs it could do it by itself. So I say: don't bother with > conversion, let the hook do it. OK. Do you think this implies a change in the documentation ? I think it could be better... At least to avoid people complaining...