diff options
-rw-r--r-- | Build/source/texk/dviout-util/ChangeLog | 5 | ||||
-rw-r--r-- | Build/source/texk/dviout-util/dvispc.c | 4 |
2 files changed, 9 insertions, 0 deletions
diff --git a/Build/source/texk/dviout-util/ChangeLog b/Build/source/texk/dviout-util/ChangeLog index 55d13d581e2..c49ff4748e5 100644 --- a/Build/source/texk/dviout-util/ChangeLog +++ b/Build/source/texk/dviout-util/ChangeLog @@ -1,3 +1,8 @@ +2021-07-18 TANAKA Takuji <ttk@t-lab.opal.ne.jp> + + * dvispc.c: Output text files by "wb" mode. + (Windows only) + 2021-06-27 Hironobu Yamashita <h.y.acetaminophen@gmail.com> * dvispc.c: Avoid encoding conversion in ASCII range diff --git a/Build/source/texk/dviout-util/dvispc.c b/Build/source/texk/dviout-util/dvispc.c index e569a2d0b8a..1d60e79fe2f 100644 --- a/Build/source/texk/dviout-util/dvispc.c +++ b/Build/source/texk/dviout-util/dvispc.c @@ -787,7 +787,11 @@ same: strcpy(outfile, infile); else if(f_mode == EXE2MODIFY) fp_out = stderr; else{ +#ifndef UNIX + fp_out = fopen(outfile, WRITE_BINARY); +#else fp_out = fopen(outfile, WRITE_TEXT); +#endif if(fp_out == NULL){ fprintf(stderr, "Cannot open %s for output\n", outfile); exit(1); |