]> git.saurik.com Git - wxWidgets.git/commitdiff
Allow using '(' and ')' in wxFileConfig entry names unescaped.
authorVadim Zeitlin <vadim@wxwidgets.org>
Thu, 29 Dec 2011 22:11:11 +0000 (22:11 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Thu, 29 Dec 2011 22:11:11 +0000 (22:11 +0000)
There is no real reason to escape the parentheses in the key entries, they're
not special.

Closes #13584.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@70184 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/common/fileconf.cpp

index 33b83d88e74252b1be1613806033271e2d3bb78c..ee79bdba34b33d05673f4a59a06662b314cb0157 100644 (file)
@@ -2111,7 +2111,7 @@ static wxString FilterOutEntryName(const wxString& str)
 #if !wxUSE_UNICODE
             ((unsigned char)c < 127) &&
 #endif // ANSI
-         !wxIsalnum(c) && !wxStrchr(wxT("@_/-!.*%"), c) )
+         !wxIsalnum(c) && !wxStrchr(wxT("@_/-!.*%()"), c) )
     {
       strResult += wxT('\\');
     }