Use UTF-8 encoding in test_io_mgr.cpp.

This commit is contained in:
Alex Shvartzkop 2023-09-07 12:56:53 +03:00
parent 79c86445d2
commit 83afdd297e
1 changed files with 7 additions and 4 deletions

View File

@ -1,4 +1,4 @@
/* /*
* This program source code file is part of KiCad, a free EDA CAD application. * This program source code file is part of KiCad, a free EDA CAD application.
* *
* Copyright (C) 2023 Roberto Fernandez Bautista <roberto.fer.bau@gmail.com> * Copyright (C) 2023 Roberto Fernandez Bautista <roberto.fer.bau@gmail.com>
@ -251,7 +251,8 @@ BOOST_AUTO_TEST_CASE( FindBoardPluginType )
{ {
BOOST_TEST_CONTEXT( c.m_case_name ) BOOST_TEST_CONTEXT( c.m_case_name )
{ {
std::string dataPath = KI_TEST::GetPcbnewTestDataDir() + c.m_file_rel_path; wxString dataPath =
wxString::FromUTF8( KI_TEST::GetPcbnewTestDataDir() + c.m_file_rel_path );
BOOST_CHECK_EQUAL( IO_MGR::FindPluginTypeFromBoardPath( dataPath ), BOOST_CHECK_EQUAL( IO_MGR::FindPluginTypeFromBoardPath( dataPath ),
c.m_expected_type ); c.m_expected_type );
@ -269,7 +270,8 @@ BOOST_AUTO_TEST_CASE( GuessLibraryPluginType )
{ {
BOOST_TEST_CONTEXT( c.m_case_name ) BOOST_TEST_CONTEXT( c.m_case_name )
{ {
std::string dataPath = KI_TEST::GetPcbnewTestDataDir() + c.m_file_rel_path; wxString dataPath =
wxString::FromUTF8( KI_TEST::GetPcbnewTestDataDir() + c.m_file_rel_path );
BOOST_CHECK_EQUAL( IO_MGR::GuessPluginTypeFromLibPath( dataPath ), c.m_expected_type ); BOOST_CHECK_EQUAL( IO_MGR::GuessPluginTypeFromLibPath( dataPath ), c.m_expected_type );
@ -286,7 +288,8 @@ BOOST_AUTO_TEST_CASE( CheckCanReadBoard )
{ {
BOOST_TEST_CONTEXT( c.m_case_name ) BOOST_TEST_CONTEXT( c.m_case_name )
{ {
std::string dataPath = KI_TEST::GetPcbnewTestDataDir() + c.m_file_rel_path; wxString dataPath =
wxString::FromUTF8( KI_TEST::GetPcbnewTestDataDir() + c.m_file_rel_path );
auto& pluginEntries = IO_MGR::PLUGIN_REGISTRY::Instance()->AllPlugins(); auto& pluginEntries = IO_MGR::PLUGIN_REGISTRY::Instance()->AllPlugins();