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:
parent
c6f149764d
commit
0653f46c07
19 changed files with 684 additions and 425 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue