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:
@@ -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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user