From 83afdd297e85479061139449366651d5b6937c70 Mon Sep 17 00:00:00 2001 From: Alex Shvartzkop Date: Thu, 7 Sep 2023 12:56:53 +0300 Subject: [PATCH] Use UTF-8 encoding in test_io_mgr.cpp. --- qa/tests/pcbnew/test_io_mgr.cpp | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/qa/tests/pcbnew/test_io_mgr.cpp b/qa/tests/pcbnew/test_io_mgr.cpp index c2d093c1bc..f9e63e894d 100644 --- a/qa/tests/pcbnew/test_io_mgr.cpp +++ b/qa/tests/pcbnew/test_io_mgr.cpp @@ -1,4 +1,4 @@ -/* +/* * This program source code file is part of KiCad, a free EDA CAD application. * * Copyright (C) 2023 Roberto Fernandez Bautista @@ -251,7 +251,8 @@ BOOST_AUTO_TEST_CASE( FindBoardPluginType ) { 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 ), c.m_expected_type ); @@ -269,7 +270,8 @@ BOOST_AUTO_TEST_CASE( GuessLibraryPluginType ) { 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 ); @@ -286,7 +288,8 @@ BOOST_AUTO_TEST_CASE( CheckCanReadBoard ) { 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();