diff options
author | Takuji Tanaka <ttk@t-lab.opal.ne.jp> | 2021-07-18 02:50:36 +0000 |
---|---|---|
committer | Takuji Tanaka <ttk@t-lab.opal.ne.jp> | 2021-07-18 02:50:36 +0000 |
commit | 649435c5493b5a4828532fe58f1fe5aa22f9194c (patch) | |
tree | f386d4a2f4a38cf4c5de54e5be0de09a1c21fcb0 /Build/source/texk/cjkutils/cjkutils-src/CEFconv | |
parent | 15db517a6d0610f32b5a98250ea468860261ce97 (diff) |
cjkutils: apply patch of W32TeX (Windows only)
git-svn-id: svn://tug.org/texlive/trunk@59968 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Build/source/texk/cjkutils/cjkutils-src/CEFconv')
3 files changed, 21 insertions, 0 deletions
diff --git a/Build/source/texk/cjkutils/cjkutils-src/CEFconv/cef5conv.c b/Build/source/texk/cjkutils/cjkutils-src/CEFconv/cef5conv.c index 46228a1f5de..5bc20b791c2 100644 --- a/Build/source/texk/cjkutils/cjkutils-src/CEFconv/cef5conv.c +++ b/Build/source/texk/cjkutils/cjkutils-src/CEFconv/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); diff --git a/Build/source/texk/cjkutils/cjkutils-src/CEFconv/cefconv.c b/Build/source/texk/cjkutils/cjkutils-src/CEFconv/cefconv.c index 967672e7938..962f6267624 100644 --- a/Build/source/texk/cjkutils/cjkutils-src/CEFconv/cefconv.c +++ b/Build/source/texk/cjkutils/cjkutils-src/CEFconv/cefconv.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); diff --git a/Build/source/texk/cjkutils/cjkutils-src/CEFconv/cefsconv.c b/Build/source/texk/cjkutils/cjkutils-src/CEFconv/cefsconv.c index bd4a701ffc5..d6eb6907327 100644 --- a/Build/source/texk/cjkutils/cjkutils-src/CEFconv/cefsconv.c +++ b/Build/source/texk/cjkutils/cjkutils-src/CEFconv/cefsconv.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[]) @@ -14,6 +18,9 @@ int main(int argc,char*argv[]) 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); |