Settings management: try to fix full filename issues when using non ASCII7 chars.

The fix convert all std::string storing a path to wxString (unicode support)
wxString were already used at many place to store paths, but not all.
For internal calculations mixing char strings and wide char strings is a recipe
for bug: any missing conversion between UTF8 and wxString breaks paths.
This commit is contained in:
jean-pierre charras
2020-08-02 21:31:03 +02:00
parent f3b92903e2
commit df4226f896
14 changed files with 54 additions and 58 deletions
+2 -2
View File
@@ -41,7 +41,7 @@ NESTED_SETTINGS::~NESTED_SETTINGS()
}
bool NESTED_SETTINGS::LoadFromFile( const std::string& aDirectory )
bool NESTED_SETTINGS::LoadFromFile( const wxString& aDirectory )
{
clear();
bool success = false;
@@ -75,7 +75,7 @@ bool NESTED_SETTINGS::LoadFromFile( const std::string& aDirectory )
}
bool NESTED_SETTINGS::SaveToFile( const std::string& aDirectory, bool aForce )
bool NESTED_SETTINGS::SaveToFile( const wxString& aDirectory, bool aForce )
{
if( !m_parent )
return false;