diff options
author | Hironobu Yamashita <h.y.acetaminophen@gmail.com> | 2018-02-03 11:18:35 +0000 |
---|---|---|
committer | Hironobu Yamashita <h.y.acetaminophen@gmail.com> | 2018-02-03 11:18:35 +0000 |
commit | 7626b1d3ff9a8b821adc818514696cf34d257049 (patch) | |
tree | c9cd895a3bc13552fc08ce46dfa63ae23dea40a3 /Build/source/texk/web2c/lib | |
parent | 3d9c6303e68ce2c7a6af893113187fa5e75bbfc4 (diff) |
xetexdir: sync with the upstream [acfb33c] (version 0.99999)
git-svn-id: svn://tug.org/texlive/trunk@46526 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Build/source/texk/web2c/lib')
-rw-r--r-- | Build/source/texk/web2c/lib/texmfmp.c | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/Build/source/texk/web2c/lib/texmfmp.c b/Build/source/texk/web2c/lib/texmfmp.c index 55dea7291bb..3642decb137 100644 --- a/Build/source/texk/web2c/lib/texmfmp.c +++ b/Build/source/texk/web2c/lib/texmfmp.c @@ -2175,6 +2175,36 @@ close_file_or_pipe (FILE *f) } close_file(f); } + +#ifdef XeTeX + +#include <unicode/ucnv.h> + +void +u_close_file_or_pipe (unicodefile* f) +{ + int i; /* iterator */ + + if (shellenabledp) { + /* if this file was a pipe, pclose() it and return */ + for (i=0; i<NUM_PIPES; i++) { + if (pipes[i] == (*f)->f) { + if ((*f)->f) { + pclose ((*f)->f); + if (((*f)->encodingMode == ICUMAPPING) && ((*f)->conversionData != NULL)) + ucnv_close((*f)->conversionData); + free(*f); + } + pipes[i] = NULL; + return; + } + } + } + close_file((*f)->f); +} + +#endif + #endif /* ENABLE_PIPES */ /* All our interrupt handler has to do is set TeX's or Metafont's global |