Change the input encoding once,not on every run.

This commit is contained in:
Ramon Novoa 2017-01-16 13:57:11 +01:00
parent 9375927b55
commit a27f72168d
1 changed files with 3 additions and 3 deletions

View File

@ -80,6 +80,9 @@ Pandora_Module_Exec::Pandora_Module_Exec (string name, string exec, string nativ
} else {
this->output_encoding = "";
}
/*allways change input encoding from UTF-8 to ANSI*/
changeInputEncoding();
}
void
@ -147,9 +150,6 @@ Pandora_Module_Exec::run () {
to find the GNU W32 tools */
working_dir = getPandoraInstallDir () + "util\\";
/*allways change input encoding from UTF-8 to ANSI*/
changeInputEncoding();
/* Create the child process. */
if (! CreateProcess (NULL, (CHAR *) this->module_exec.c_str (), NULL,
NULL, TRUE, CREATE_SUSPENDED | CREATE_NO_WINDOW, NULL,