Skip to content

Commit

Permalink
Handle MiKTeX-specific options (#428)
Browse files Browse the repository at this point in the history
  • Loading branch information
edocevoli committed Jan 25, 2020
1 parent 3d67709 commit 97bdceb
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions Programs/MiKTeX/gsf2pk/gsf2pk.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1411,7 +1411,11 @@ void Converter::Convert(const char* texFontName, const char* fontName, const cha

void Converter::Main(int argc, const char** argv)
{
PoptWrapper popt(argc, argv, aoption);
Session::InitInfo initInfo(argv[0]);
vector<const char*> newargv(&argv[0], &argv[argc + 1]);
auto ignored = ExamineArgs(newargv, initInfo);

PoptWrapper popt(newargv.size() - 1, &newargv[0], aoption);

// process command-line options
int option;
Expand Down Expand Up @@ -1459,8 +1463,7 @@ void Converter::Main(int argc, const char** argv)
Error(T_("Wrong number of command-line arguments."));
}

// MIKTEX-TODO: pass argc/argv
Init(argv[0]);
Init(initInfo);
session = GetSession();

Convert(leftovers[0].c_str(), // "utmr8r"
Expand Down

0 comments on commit 97bdceb

Please sign in to comment.