diff options
author | Takuji Tanaka <ttk@t-lab.opal.ne.jp> | 2021-07-18 01:48:24 +0000 |
---|---|---|
committer | Takuji Tanaka <ttk@t-lab.opal.ne.jp> | 2021-07-18 01:48:24 +0000 |
commit | 33b08c445f9d3b33aceaa240ce0078057c9682bb (patch) | |
tree | 09c1f84c7dab90bc403ee5ff9e18d606a75bbfc6 /Build/source | |
parent | 6683b90ae64a8a23d64e4b17b1e7d5fac3571614 (diff) |
dviout-util/dvispc: Output text files by wb mode on Windows
git-svn-id: svn://tug.org/texlive/trunk@59966 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Build/source')
-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); |