Unicode port: Makensis subprocesses (like !system) also use UTF-8 output
git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@6086 212acab6-be3b-0410-9dea-997c60f758d6
This commit is contained in:
parent
428ae80ab1
commit
bd4214a2db
1 changed files with 2 additions and 1 deletions
|
@ -271,7 +271,8 @@ int _tmain(int argc, TCHAR **argv)
|
|||
int in_files=0;
|
||||
|
||||
#ifdef _UNICODE
|
||||
_setmode(_fileno(stdout), _O_U8TEXT); // set console output as UTF-8
|
||||
_setmode(_fileno(stdout), _O_U8TEXT); // set stdout to UTF-8
|
||||
SetConsoleOutputCP(CP_UTF8); // set console output to UTF-8 (especially useful for subprocesses like !system)
|
||||
#endif
|
||||
try
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue