summaryrefslogtreecommitdiff
path: root/Build
diff options
context:
space:
mode:
authorPeter Breitenlohner <peb@mppmu.mpg.de>2012-07-09 11:59:05 +0000
committerPeter Breitenlohner <peb@mppmu.mpg.de>2012-07-09 11:59:05 +0000
commit2d967b1e402fc8983d6800956dfd6c3600057b0d (patch)
treebcc298d12a2205db0c26ae038542406b8e066283 /Build
parentcf0d9ed59589e57e24a07e48c92969eb5e655acd (diff)
devnag: Use binary mode for output files (from W32TeX)
git-svn-id: svn://tug.org/texlive/trunk@26960 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Build')
-rw-r--r--Build/source/texk/devnag/ChangeLog9
-rw-r--r--Build/source/texk/devnag/src/devnag.c2
2 files changed, 8 insertions, 3 deletions
diff --git a/Build/source/texk/devnag/ChangeLog b/Build/source/texk/devnag/ChangeLog
index 693e5dd2d8e..02e34bd3201 100644
--- a/Build/source/texk/devnag/ChangeLog
+++ b/Build/source/texk/devnag/ChangeLog
@@ -1,15 +1,20 @@
+2012-05-16 Peter Breitenlohner <peb@mppmu.mpg.de>
+
+ * src/devnag.c: Use binary mode for output files.
+ From Akira Kakuto <kakuto@fuk.kindai.ac.jp> (W32TeX).
+
2010-12-08 Peter Breitenlohner <peb@mppmu.mpg.de>
* configure.ac: Version 2.15 (since 2008-07-03).
2010-05-22 Akira Kakuto <kakuto@fuk.kindai.ac.jp>
- * devnag.c: cast arguments in order to avoid compiler warnings.
+ * src/devnag.c: cast arguments in order to avoid compiler warnings.
2009-08-21 Peter Breitenlohner <peb@mppmu.mpg.de>
Avoid maximal compiler warnings.
- * devnag.c: Constify various global strings and string args.
+ * src/devnag.c: Constify various global strings and string args.
Drop global variable nbsub.
2009-06-19 Peter Breitenlohner <peb@mppmu.mpg.de>
diff --git a/Build/source/texk/devnag/src/devnag.c b/Build/source/texk/devnag/src/devnag.c
index b4de2b2cdfe..bc95c182472 100644
--- a/Build/source/texk/devnag/src/devnag.c
+++ b/Build/source/texk/devnag/src/devnag.c
@@ -1334,7 +1334,7 @@ int main(int argc, char **argv) {
}
if (strcasecmp(infil, outfil) == 0) strcat(outfil, DEFAULT_DEST_EXT);
}
- if ((f_out = fopen(outfil, "w")) == NULL) {
+ if ((f_out = fopen(outfil, "wb")) == NULL) {
fclose(f_in);
fprintf(stderr, "cannot open %s for output\n", outfil);
exit(1);