From e156645e215ddc9fc1382f53bf99eac89a916ca1 Mon Sep 17 00:00:00 2001 From: Peter Breitenlohner Date: Mon, 9 Jul 2012 12:05:21 +0000 Subject: tie: Use binary mode for output files (from W32TeX) git-svn-id: svn://tug.org/texlive/trunk@26963 c570f23f-e606-0410-a88d-b1316a301751 --- Build/source/texk/web2c/tiedir/ChangeLog | 5 +++++ Build/source/texk/web2c/tiedir/tie-w2c.ch | 12 +++++++++--- 2 files changed, 14 insertions(+), 3 deletions(-) (limited to 'Build/source/texk/web2c/tiedir') 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 + + * tie-w2c.ch: Use binary mode for output files. + From Akira Kakuto (W32TeX). + 2010-04-10 Peter Breitenlohner * 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); -- cgit v1.2.3