StdOut Unicode support, controlled by /OUTPUTCHARSET and/or existing BOM if redirected.

git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@6350 212acab6-be3b-0410-9dea-997c60f758d6
This commit is contained in:
anders_k 2013-05-04 13:32:47 +00:00
parent c6f149764d
commit 0653f46c07
19 changed files with 684 additions and 425 deletions

View file

@ -3241,6 +3241,9 @@ int CEXEBuild::doCommand(int which_token, LineParser &line)
TCHAR *exec=line.gettoken_str(1);
SCRIPT_MSG(_T("!execute: \"%s\"\n"),exec);
#ifdef _WIN32
#ifdef _UNICODE
RunChildProcessRedirected(0,exec);
#else
PROCESS_INFORMATION pi;
STARTUPINFO si={sizeof(STARTUPINFO),};
if (CreateProcess(NULL,exec,NULL,NULL,FALSE,0,NULL,NULL,&si,&pi))
@ -3249,6 +3252,7 @@ int CEXEBuild::doCommand(int which_token, LineParser &line)
CloseHandle(pi.hThread);
CloseHandle(pi.hProcess);
}
#endif
#else
TCHAR *execfixed = my_convert(exec);
system(execfixed);