mirror of
https://gitlab.com/mbunkus/mkvtoolnix.git
synced 2024-12-24 11:54:01 +00:00
Do the setup before trying to convert the command line to UTF-8. Otherwise arguments with non-ASCII characters are not converted correctly.
This commit is contained in:
parent
871d1b744b
commit
b1d7f1a40c
@ -1,3 +1,9 @@
|
||||
2005-07-25 Moritz Bunkus <moritz@bunkus.org>
|
||||
|
||||
* mkvinfo: bug fix: Files with non-ASCII chars weren't opened
|
||||
because conversion to UTF-8 was done before the charset routines
|
||||
were initialized.
|
||||
|
||||
2005-07-20 Moritz Bunkus <moritz@bunkus.org>
|
||||
|
||||
* mkvmerge: bug fix: Fixed a crash if a track in a MP4/QuickTime
|
||||
|
@ -68,7 +68,6 @@ mi_app::OnInit() {
|
||||
return false;
|
||||
}
|
||||
|
||||
setup();
|
||||
frame = new mi_frame(wxT("mkvinfo"), wxPoint(50, 50), wxSize(600, 400));
|
||||
frame->Show(true);
|
||||
frame->Refresh(true);
|
||||
|
@ -1988,7 +1988,6 @@ console_main(vector<string> args) {
|
||||
nice(2);
|
||||
#endif
|
||||
|
||||
setup();
|
||||
parse_args(args, file_name);
|
||||
if (file_name == "") {
|
||||
usage();
|
||||
@ -2018,6 +2017,8 @@ main(int argc,
|
||||
vector<string> args;
|
||||
string initial_file;
|
||||
|
||||
setup();
|
||||
|
||||
args = command_line_utf8(argc, argv);
|
||||
parse_args(args, initial_file);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user