summaryrefslogtreecommitdiff
path: root/Build/source/texk/cjkutils/cef5conv.c
diff options
context:
space:
mode:
authorHironobu Yamashita <h.y.acetaminophen@gmail.com>2021-07-18 11:38:38 +0000
committerHironobu Yamashita <h.y.acetaminophen@gmail.com>2021-07-18 11:38:38 +0000
commit6e2b03d8b565d767dd8e1827d7ad5366eef1bb0a (patch)
treeced5afe114a89b174bcb147efdd0824126abfa33 /Build/source/texk/cjkutils/cef5conv.c
parent9bb1926c239594a36e64967921a43f4eec95ca3e (diff)
cjkutils: regenerate C source after patch
git-svn-id: svn://tug.org/texlive/trunk@59970 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Build/source/texk/cjkutils/cef5conv.c')
-rw-r--r--Build/source/texk/cjkutils/cef5conv.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/Build/source/texk/cjkutils/cef5conv.c b/Build/source/texk/cjkutils/cef5conv.c
index 30a0f97209d..f97b9c272c2 100644
--- a/Build/source/texk/cjkutils/cef5conv.c
+++ b/Build/source/texk/cjkutils/cef5conv.c
@@ -7,6 +7,10 @@
#include <ctype.h>
#include <stdio.h>
#include <stdlib.h>
+#ifdef WIN32
+#include <fcntl.h>
+#include <io.h>
+#endif
int main(int argc,char*argv[])
@@ -15,6 +19,9 @@ unsigned char in[16];
unsigned char out[32];
unsigned char*inp,*outp;
+#ifdef WIN32
+setmode(fileno(stdout),_O_BINARY);
+#endif
fprintf(stdout,"\\def\\CNSpreproc{%s}",banner);
ch= fgetc(stdin);