diff options
author | Karl Berry <karl@freefriends.org> | 2017-02-13 22:32:47 +0000 |
---|---|---|
committer | Karl Berry <karl@freefriends.org> | 2017-02-13 22:32:47 +0000 |
commit | 370b138f85fb5eee6e176bcd9ad772ba178cb843 (patch) | |
tree | 8a61482b1002160dab258c9dc051c14abd2ab46d /Build/source/texk/detex/TLpatches/patch-09-binary | |
parent | 11e8da1007c229802798bcb15cc69c62f5b8e5f6 (diff) |
TLpatches seems nicer than all uppercase; sorry for churn
git-svn-id: svn://tug.org/texlive/trunk@43214 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Build/source/texk/detex/TLpatches/patch-09-binary')
-rw-r--r-- | Build/source/texk/detex/TLpatches/patch-09-binary | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/Build/source/texk/detex/TLpatches/patch-09-binary b/Build/source/texk/detex/TLpatches/patch-09-binary new file mode 100644 index 00000000000..95d272030ad --- /dev/null +++ b/Build/source/texk/detex/TLpatches/patch-09-binary @@ -0,0 +1,28 @@ + In TeX Live we use binary mode for all output files. + +diff -ur detex-2.8.orig/detex.l detex-2.8/detex.l +--- detex-2.8.orig/detex.l 2012-08-24 10:37:03.000000000 +0200 ++++ detex-2.8/detex.l 2012-08-24 10:51:12.000000000 +0200 +@@ -83,6 +83,11 @@ + #include <stdlib.h> + #endif + ++#ifdef WIN32 ++#include <fcntl.h> ++#include <io.h> ++#endif ++ + #endif /* KPATHSEA */ + + #undef IGNORE +@@ -494,6 +499,10 @@ + } + SetEnvIgnore(sbEnvList); + ++#ifdef WIN32 ++ _setmode(fileno(stdout), _O_BINARY); ++#endif ++ + /* process input files */ + for (; iArgs < cArgs; iArgs++) { + fSawFile++; |