Convert strings to UTF8 before they are input to PEGTL

Otherwise there are QA failures under non-UTF-8 locales.
This commit is contained in:
Mikolaj Wielgus
2022-08-10 14:20:52 +02:00
parent 962546436d
commit 0040ffc567
8 changed files with 22 additions and 22 deletions
+1 -1
View File
@@ -113,7 +113,7 @@ wxString SIM_MODEL_SOURCE::GenerateSpiceItemLine( const wxString& aRefName,
case TYPE::V_PWL:
case TYPE::I_PWL:
{
tao::pegtl::string_input<> in( GetParam( 0 ).value->ToString().ToStdString(),
tao::pegtl::string_input<> in( GetParam( 0 ).value->ToString().ToUTF8(),
"from_content" );
std::unique_ptr<tao::pegtl::parse_tree::node> root;