Change the input encoding once,not on every run.
This commit is contained in:
parent
9375927b55
commit
a27f72168d
pandora_agents/win32/modules
|
@ -80,6 +80,9 @@ Pandora_Module_Exec::Pandora_Module_Exec (string name, string exec, string nativ
|
||||||
} else {
|
} else {
|
||||||
this->output_encoding = "";
|
this->output_encoding = "";
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/*allways change input encoding from UTF-8 to ANSI*/
|
||||||
|
changeInputEncoding();
|
||||||
}
|
}
|
||||||
|
|
||||||
void
|
void
|
||||||
|
@ -147,9 +150,6 @@ Pandora_Module_Exec::run () {
|
||||||
to find the GNU W32 tools */
|
to find the GNU W32 tools */
|
||||||
working_dir = getPandoraInstallDir () + "util\\";
|
working_dir = getPandoraInstallDir () + "util\\";
|
||||||
|
|
||||||
/*allways change input encoding from UTF-8 to ANSI*/
|
|
||||||
changeInputEncoding();
|
|
||||||
|
|
||||||
/* Create the child process. */
|
/* Create the child process. */
|
||||||
if (! CreateProcess (NULL, (CHAR *) this->module_exec.c_str (), NULL,
|
if (! CreateProcess (NULL, (CHAR *) this->module_exec.c_str (), NULL,
|
||||||
NULL, TRUE, CREATE_SUSPENDED | CREATE_NO_WINDOW, NULL,
|
NULL, TRUE, CREATE_SUSPENDED | CREATE_NO_WINDOW, NULL,
|
||||||
|
|
Loading…
Reference in New Issue