diff --git a/eeschema/sim/sim_library.cpp b/eeschema/sim/sim_library.cpp index cf638469a9..ae3b4e1469 100644 --- a/eeschema/sim/sim_library.cpp +++ b/eeschema/sim/sim_library.cpp @@ -26,6 +26,7 @@ #include #include #include +#include std::unique_ptr SIM_LIBRARY::Create( const wxString& aFilePath, REPORTER* aReporter, @@ -40,7 +41,7 @@ std::unique_ptr SIM_LIBRARY::Create( const wxString& aFilePath, REP library->m_reporter = aReporter; library->m_pathResolver = aResolver; - library->ReadFile( aFilePath.utf8_string(), aReporter ); + library->ReadFile( std::string( TO_UTF8( aFilePath ) ), aReporter ); return library; }