Skip to content

Commit

Permalink
fix: Synfig CLI does not open file if path contains non-Latin charact…
Browse files Browse the repository at this point in the history
…ers (Windows) (#2819)

The problem was double conversion of command line options from local
codepage to UTF-8.
  • Loading branch information
ice0 authored Sep 13, 2022
1 parent 64b8aa0 commit 93d8f4c
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions synfig-core/src/tool/optionsprocessor.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -241,7 +241,11 @@ bool SynfigCommandLineParser::parse(int argc, char* argv[])
#ifdef GLIBMM_EXCEPTIONS_ENABLED
try
{
#ifdef _WIN32
context.parse(argv);
#else
context.parse(argc, argv);
#endif
}
catch(const Glib::Error& ex)
{
Expand Down

0 comments on commit 93d8f4c

Please sign in to comment.