[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Portability of fopen (foo, "wb") (Was: bug in AC_COMPUTE_INT)
From: |
Guido Draheim |
Subject: |
Re: Portability of fopen (foo, "wb") (Was: bug in AC_COMPUTE_INT) |
Date: |
Fri, 17 Nov 2000 00:35:30 +0100 |
Guido Draheim wrote:
> The "b" is an ansi-C requirement, however there may be some systems
> that are simply not compliant. [...] I just
> found second hand information that some DEC ultrix libc did barf
> at "b".
I did a bit of web digging, and I found first hand information in a
tex package dating back to 14-Aug-87...
> For non-Unix operating systems, it is generally
> necessary to open binary files differently than
> text files, since the C-runtime libraries use
> that distinction to decide how to translate Unix
> line terminators. Every system so far has used
> the letter "b" in the fopen() mode string to
> select this mode, and every Unix system ignores
> the "b", except Ultrix, which raises a run-time
> error, sigh... I have therefore replaced the
> mode string by RB_OPEN and WB_OPEN
with the ongoing success of windows however, I assume that no younger
system will have ever had this bug in its libc. And it *is* a bug.
-- guido Edel sei der Mensch, hilfreich und gut
31:GCS/E/S/P C++$++++ ULHS L++w- N++@ d(+-) s+a- h.r(*@)>+++ y++ PS++PE 5++X-
- Re: bug in AC_COMPUTE_INT, (continued)
- Re: bug in AC_COMPUTE_INT, Akim Demaille, 2000/11/16
- Re: bug in AC_COMPUTE_INT, Lars J. Aas, 2000/11/16
- Re: bug in AC_COMPUTE_INT, Lars J. Aas, 2000/11/16
- Re: bug in AC_COMPUTE_INT, Lars J. Aas, 2000/11/16
- Re: bug in AC_COMPUTE_INT, Akim Demaille, 2000/11/16
- Portability of fopen (foo, "wb") (Was: bug in AC_COMPUTE_INT), Akim Demaille, 2000/11/16
- Re: Portability of fopen (foo, "wb") (Was: bug in AC_COMPUTE_INT), Peter Eisentraut, 2000/11/16
- Re: Portability of fopen (foo, "wb") (Was: bug in AC_COMPUTE_INT), Akim Demaille, 2000/11/16
- Re: Portability of fopen (foo, "wb") (Was: bug in AC_COMPUTE_INT), Paul Eggert, 2000/11/16
- Re: Portability of fopen (foo, "wb") (Was: bug in AC_COMPUTE_INT), Guido Draheim, 2000/11/16
- Re: Portability of fopen (foo, "wb") (Was: bug in AC_COMPUTE_INT),
Guido Draheim <=
- Re: Portability of fopen (foo, "wb") (Was: bug in AC_COMPUTE_INT), Alexandre Oliva, 2000/11/16
- Re: bug in AC_COMPUTE_INT, Lars J. Aas, 2000/11/16