Don't convert the command line shown in the "command line" window to UTF-8 as it causes too many problems. mmg doesn't use that command line anyway because it puts its arguments into "option files".

This commit is contained in:
Moritz Bunkus 2004-12-31 16:16:58 +00:00
parent af404ec9ae
commit ef8828426c

View File

@ -1104,7 +1104,7 @@ mmg_dialog::update_command_line() {
old_cmdline = cmdline;
cmdline = wxT("\"") + mkvmerge_path + wxT("\" -o \"") +
tc_output->GetValue() + wxT("\" ") + wxT("--command-line-charset UTF-8 ");
tc_output->GetValue() + wxT("\" ");
clargs.Clear();
clargs.Add(mkvmerge_path);
@ -1365,14 +1365,6 @@ mmg_dialog::update_command_line() {
cmdline += wxT(" ") + shell_escape(clargs[i]);
}
#if WXUNICODE
string utf8, tmp;
utf8 = to_utf8(cmdline);
tmp = to_utf8(utf8_init("ISO8859-1"), utf8.c_str());
cmdline = wxU(tmp.c_str());
#else
cmdline = to_utf8(cmdline).c_str();
#endif
if (old_cmdline != cmdline)
tc_cmdline->SetValue(cmdline);
}