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:
Moritz Bunkus 2005-07-25 18:23:36 +00:00
parent 871d1b744b
commit b1d7f1a40c
3 changed files with 8 additions and 2 deletions

View File

@ -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

View File

@ -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);

View File

@ -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);