summaryrefslogtreecommitdiff
path: root/Build/source/utils
diff options
context:
space:
mode:
authorPeter Breitenlohner <peb@mppmu.mpg.de>2012-07-09 13:10:38 +0000
committerPeter Breitenlohner <peb@mppmu.mpg.de>2012-07-09 13:10:38 +0000
commit8fa655529b92163f465eefb95505adcf284b8254 (patch)
tree435f8afb56c89cb892072e4f0e1ed06158cdfe70 /Build/source/utils
parenteaa7a7a3fe5d8bf44a9b7fa2844e2e3852bc69d6 (diff)
mtx: Use binary mode for output files (from W32TeX)
git-svn-id: svn://tug.org/texlive/trunk@26974 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Build/source/utils')
-rw-r--r--Build/source/utils/mtx/mtx-0.60d-PATCHES/ChangeLog7
-rw-r--r--Build/source/utils/mtx/mtx-0.60d-PATCHES/patch-01-write-bin27
-rw-r--r--Build/source/utils/mtx/mtx-0.60d/globals.c2
3 files changed, 35 insertions, 1 deletions
diff --git a/Build/source/utils/mtx/mtx-0.60d-PATCHES/ChangeLog b/Build/source/utils/mtx/mtx-0.60d-PATCHES/ChangeLog
new file mode 100644
index 00000000000..925cebde3c1
--- /dev/null
+++ b/Build/source/utils/mtx/mtx-0.60d-PATCHES/ChangeLog
@@ -0,0 +1,7 @@
+2012-05-16 Peter Breitenlohner <peb@mppmu.mpg.de>
+
+ * patch-01-write-bin (new): Use binary mode for output files.
+ From Akira Kakuto <kakuto@fuk.kindai.ac.jp> (W32TeX).
+
+Copyright (C) 2012 Peter Breitenlohner <tex-live@tug.org>
+You may freely use, modify and/or distribute this file.
diff --git a/Build/source/utils/mtx/mtx-0.60d-PATCHES/patch-01-write-bin b/Build/source/utils/mtx/mtx-0.60d-PATCHES/patch-01-write-bin
new file mode 100644
index 00000000000..a513d56fc3c
--- /dev/null
+++ b/Build/source/utils/mtx/mtx-0.60d-PATCHES/patch-01-write-bin
@@ -0,0 +1,27 @@
+diff -ur mtx-0.60d.orig/files.c mtx-0.60d/files.c
+--- mtx-0.60d.orig/files.c 2012-04-05 14:46:38.000000000 +0200
++++ mtx-0.60d/files.c 2012-06-16 17:39:37.000000000 +0200
+@@ -275,9 +275,9 @@
+ pushFile(infilename);
+ strcpy(outfile_NAME, outfilename);
+ if (outfile != NULL)
+- outfile = freopen(outfile_NAME, "w", outfile);
++ outfile = freopen(outfile_NAME, "wb", outfile);
+ else
+- outfile = fopen(outfile_NAME, "w");
++ outfile = fopen(outfile_NAME, "wb");
+ _SETIO(outfile != NULL, FileNotFound);
+ strcpy(stylefile_NAME, stylefilename);
+ if (stylefile != NULL)
+diff -ur mtx-0.60d.orig/globals.c mtx-0.60d/globals.c
+--- mtx-0.60d.orig/globals.c 2012-04-05 14:41:42.000000000 +0200
++++ mtx-0.60d/globals.c 2012-06-16 17:39:40.000000000 +0200
+@@ -237,7 +237,7 @@
+ if (outfile != NULL)
+ fclose(outfile);
+ outfile = NULL;
+- outfile = fopen(outfile_NAME, "w");
++ outfile = fopen(outfile_NAME, "wb");
+ if (outfile == NULL)
+ _EscIO2(FileNotFound, outfile_NAME);
+ fclose(outfile);
diff --git a/Build/source/utils/mtx/mtx-0.60d/globals.c b/Build/source/utils/mtx/mtx-0.60d/globals.c
index d022881a84d..eba3ab3e00d 100644
--- a/Build/source/utils/mtx/mtx-0.60d/globals.c
+++ b/Build/source/utils/mtx/mtx-0.60d/globals.c
@@ -237,7 +237,7 @@ boolean printLine;
if (outfile != NULL)
fclose(outfile);
outfile = NULL;
- outfile = fopen(outfile_NAME, "w");
+ outfile = fopen(outfile_NAME, "wb");
if (outfile == NULL)
_EscIO2(FileNotFound, outfile_NAME);
fclose(outfile);