autoconf
[Top][All Lists]
Advanced

[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: Peter Eisentraut
Subject: Re: Portability of fopen (foo, "wb") (Was: bug in AC_COMPUTE_INT)
Date: Thu, 16 Nov 2000 17:19:47 +0100 (CET)

Akim Demaille writes:

> Does anybody know whether using fopen (foo, "wb") is portable?

Extremely doubtful.

In this particular case you can work around by using open() and write()
and define O_BINARY to be 0 if not defined already.

Other possible approaches:

* Focus on avoiding getting the \r into config.status.

* Do not print an end-of-line at all.

-- 
Peter Eisentraut      address@hidden       http://yi.org/peter-e/




reply via email to

[Prev in Thread] Current Thread [Next in Thread]