diff options
-rw-r--r-- | Build/source/texk/web2c/tiedir/ChangeLog | 5 | ||||
-rw-r--r-- | Build/source/texk/web2c/tiedir/tie-w2c.ch | 12 |
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); |