mirror of
https://gitlab.com/mbunkus/mkvtoolnix.git
synced 2024-12-25 04:11:44 +00:00
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:
parent
af404ec9ae
commit
ef8828426c
@ -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);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user