diff options
author | Peter Breitenlohner <peb@mppmu.mpg.de> | 2012-07-09 12:10:48 +0000 |
---|---|---|
committer | Peter Breitenlohner <peb@mppmu.mpg.de> | 2012-07-09 12:10:48 +0000 |
commit | 9f58d9ec6188c26295195f8b25cc325a0d092541 (patch) | |
tree | 9382aeb5fe41722149b683a5b49d83d033ed78b4 /Build/source | |
parent | 1c0ac4a7ab45a380490450dc96731374549adfb5 (diff) |
Drop the problematic prototype for isatty()
Use binary mode for output files (from W32TeX)
git-svn-id: svn://tug.org/texlive/trunk@26965 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Build/source')
-rw-r--r-- | Build/source/texk/dtl/ChangeLog | 7 | ||||
-rw-r--r-- | Build/source/texk/dtl/dt2dv.c | 4 | ||||
-rw-r--r-- | Build/source/texk/dtl/dv2dt.c | 8 |
3 files changed, 9 insertions, 10 deletions
diff --git a/Build/source/texk/dtl/ChangeLog b/Build/source/texk/dtl/ChangeLog index f6ee7d419df..0cc87da1699 100644 --- a/Build/source/texk/dtl/ChangeLog +++ b/Build/source/texk/dtl/ChangeLog @@ -1,3 +1,10 @@ +2012-06-27 Peter Breitenlohner <peb@mppmu.mpg.de> + + * dt2dv.c, dv2dt.c: Drop the problematic prototype for isatty(), + already declared in <unistd.h> or <kpathsea/c-fopen.h>. + Use binary mode for output files. + From Akira Kakuto <kakuto@fuk.kindai.ac.jp> (W32TeX). + 2010-05-10 Peter Breitenlohner <peb@mppmu.mpg.de> * dt2dv.c, dv2dt.c (SET_BINARY): Remove casts to void. diff --git a/Build/source/texk/dtl/dt2dv.c b/Build/source/texk/dtl/dt2dv.c index c52beef3a0c..069afb7d397 100644 --- a/Build/source/texk/dtl/dt2dv.c +++ b/Build/source/texk/dtl/dt2dv.c @@ -33,10 +33,6 @@ #ifdef HAVE_UNISTD_H #include <unistd.h> -#else -#ifndef __cplusplus -extern int isatty (int ); -#endif /* __cplusplus */ #endif #ifdef KPATHSEA diff --git a/Build/source/texk/dtl/dv2dt.c b/Build/source/texk/dtl/dv2dt.c index 49d540b41f4..5a4b803f6b1 100644 --- a/Build/source/texk/dtl/dv2dt.c +++ b/Build/source/texk/dtl/dv2dt.c @@ -26,10 +26,6 @@ #ifdef HAVE_UNISTD_H #include <unistd.h> -#else -#ifndef __cplusplus -extern int isatty (int ); -#endif /* __cplusplus */ #endif #ifdef KPATHSEA @@ -230,11 +226,11 @@ open_dtl exit (1); } - *pdtl = fopen (dtl_file, "w"); + *pdtl = fopen (dtl_file, "wb"); if (*pdtl == NULL) { - fprintf (stderr, "%s: Cannot open \"%s\" for text writing.\n", + fprintf (stderr, "%s: Cannot open \"%s\" for writing.\n", program, dtl_file); exit (1); } |