summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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");