summaryrefslogtreecommitdiff
path: root/Build/source/texk/web2c/cwebdir/comm-w2c.ch
diff options
context:
space:
mode:
authorPeter Breitenlohner <peb@mppmu.mpg.de>2012-07-09 12:04:10 +0000
committerPeter Breitenlohner <peb@mppmu.mpg.de>2012-07-09 12:04:10 +0000
commit189b1c7cbb80cd8f4fd56bb371c6256bdb28a79a (patch)
tree062bd8abb4f243d912401ec530527365392dd5d7 /Build/source/texk/web2c/cwebdir/comm-w2c.ch
parent9b5d983d826f99ea00ef534d1f908e3816c58c1b (diff)
cweb: Use binary mode for output files (from W32TeX)
git-svn-id: svn://tug.org/texlive/trunk@26962 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Build/source/texk/web2c/cwebdir/comm-w2c.ch')
-rw-r--r--Build/source/texk/web2c/cwebdir/comm-w2c.ch14
1 files changed, 14 insertions, 0 deletions
diff --git a/Build/source/texk/web2c/cwebdir/comm-w2c.ch b/Build/source/texk/web2c/cwebdir/comm-w2c.ch
index cf1f9ede4fa..1561f961697 100644
--- a/Build/source/texk/web2c/cwebdir/comm-w2c.ch
+++ b/Build/source/texk/web2c/cwebdir/comm-w2c.ch
@@ -660,6 +660,20 @@ FILE *active_file; /* currently active file for \.{CWEAVE} output */
char *found_filename; /* filename found by |kpse_find_file| */
@z
+Section 78.
+
+@x l.1380 Use binary mode for output files
+ if ((C_file=fopen(C_file_name,"w"))==NULL)
+@y
+ if ((C_file=fopen(C_file_name,"wb"))==NULL)
+@z
+
+@x l.1386 Use binary mode for output files
+ if ((tex_file=fopen(tex_file_name,"w"))==NULL)
+@y
+ if ((tex_file=fopen(tex_file_name,"wb"))==NULL)
+@z
+
Section 81. (reused)