summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPeter Breitenlohner <peb@mppmu.mpg.de>2012-07-09 12:05:21 +0000
committerPeter Breitenlohner <peb@mppmu.mpg.de>2012-07-09 12:05:21 +0000
commite156645e215ddc9fc1382f53bf99eac89a916ca1 (patch)
tree681faf28cf9d38c1e4703e7059a3534d16a1dcc9
parent189b1c7cbb80cd8f4fd56bb371c6256bdb28a79a (diff)
tie: Use binary mode for output files (from W32TeX)
git-svn-id: svn://tug.org/texlive/trunk@26963 c570f23f-e606-0410-a88d-b1316a301751
-rw-r--r--Build/source/texk/web2c/tiedir/ChangeLog5
-rw-r--r--Build/source/texk/web2c/tiedir/tie-w2c.ch12
2 files changed, 14 insertions, 3 deletions
diff --git a/Build/source/texk/web2c/tiedir/ChangeLog b/Build/source/texk/web2c/tiedir/ChangeLog
index 2722034afba..780fb8771e7 100644
--- a/Build/source/texk/web2c/tiedir/ChangeLog
+++ b/Build/source/texk/web2c/tiedir/ChangeLog
@@ -1,3 +1,8 @@
+2012-05-18 Peter Breitenlohner <peb@mppmu.mpg.de>
+
+ * tie-w2c.ch: Use binary mode for output files.
+ From Akira Kakuto <kakuto@fuk.kindai.ac.jp> (W32TeX).
+
2010-04-10 Peter Breitenlohner <peb@mppmu.mpg.de>
* tie-w2c.ch: Replace "-[m|c]" in usage message by "-m|-c".
diff --git a/Build/source/texk/web2c/tiedir/tie-w2c.ch b/Build/source/texk/web2c/tiedir/tie-w2c.ch
index a55866691c5..df384da9669 100644
--- a/Build/source/texk/web2c/tiedir/tie-w2c.ch
+++ b/Build/source/texk/web2c/tiedir/tie-w2c.ch
@@ -46,7 +46,7 @@ static void
get_line (file_index i)
@z
-@x
+@x l.745
void err_loc(i) /* prints location of error */
int i;
@y
@@ -54,13 +54,19 @@ static void
err_loc (int i) /* prints location of error */
@z
-@x
+@x l.790 Use binary mode for output files
+ out_file=fopen(out_name,"w");
+@y
+ out_file=fopen(out_name,"wb");
+@z
+
+@x l.811
fopen(input_organization[0]->name_of_file,"r");
@y
kpse_open_file(input_organization[0]->name_of_file, kpse_web_format);
@z
-@x
+@x l.830
fopen(input_organization[i]->name_of_file,"r");
@y
kpse_open_file(input_organization[i]->name_of_file, kpse_web_format);