diff --git a/common/string_utils.cpp b/common/string_utils.cpp index 43dd32edfd..1a4562f337 100644 --- a/common/string_utils.cpp +++ b/common/string_utils.cpp @@ -272,7 +272,8 @@ wxString UnescapeString( const wxString& aSource ) for( size_t i = 0; i < sourceLen; ++i ) { wxUniChar ch = aSource[i]; - if( ( ch == '$' || ch == '^' || ch == '_' ) + + if( ( ch == '$' || ch == '~' || ch == '^' || ch == '_' ) && i + 1 < sourceLen && aSource[i+1] == '{' ) { for( ; i < sourceLen; ++i )