summaryrefslogtreecommitdiff
path: root/Build/source/texk/web2c/xetexdir/XeTeX_ext.c
diff options
context:
space:
mode:
authorTakuji Tanaka <KXD02663@nifty.ne.jp>2013-12-06 15:09:01 +0000
committerTakuji Tanaka <KXD02663@nifty.ne.jp>2013-12-06 15:09:01 +0000
commited9004a4ad06f292cd27d9a0bdb54be301691279 (patch)
tree0259e2d855929717c3cf8e1ae3d3d6ec3bd6855b /Build/source/texk/web2c/xetexdir/XeTeX_ext.c
parentbaf802f12f9783dd34dc19bd7363f1e7bb486756 (diff)
use _wpopen instead of popen (Windows only)
git-svn-id: svn://tug.org/texlive/trunk@32339 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Build/source/texk/web2c/xetexdir/XeTeX_ext.c')
-rw-r--r--Build/source/texk/web2c/xetexdir/XeTeX_ext.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/Build/source/texk/web2c/xetexdir/XeTeX_ext.c b/Build/source/texk/web2c/xetexdir/XeTeX_ext.c
index 374834a77f5..ae01211814a 100644
--- a/Build/source/texk/web2c/xetexdir/XeTeX_ext.c
+++ b/Build/source/texk/web2c/xetexdir/XeTeX_ext.c
@@ -2734,7 +2734,6 @@ open_dvi_output(FILE** fptr)
#if defined(WIN32)
{
wchar_t *tmp1w;
- char *tmp1;
char *p, *pp, *bindir, *fullcmd, *prgnam;
bindir = kpse_var_value("SELFAUTOLOC");
for(pp = bindir; *pp; pp++) {
@@ -2751,13 +2750,11 @@ open_dvi_output(FILE** fptr)
*p = '\0';
fullcmd = concatn("\"\"", bindir, "\\", prgnam, "\"", pp, "\"", NULL);
tmp1w = get_wstring_from_mbstring(CP_UTF8, (const char *)fullcmd, tmp1w=NULL);
- tmp1 = get_mbstring_from_wstring(GetACP(), (const wchar_t *)tmp1w, tmp1=NULL);
- *fptr = popen(tmp1, "w");
+ *fptr = _wpopen(tmp1w, L"w");
free(bindir);
free(prgnam);
free(fullcmd);
free(tmp1w);
- free(tmp1);
}
#else
*fptr = popen(cmd, "w");