]> git.saurik.com Git - wxWidgets.git/commitdiff
allow 8bit chars in the group names in wxFileConfig
authorVadim Zeitlin <vadim@wxwidgets.org>
Tue, 2 Feb 1999 13:35:51 +0000 (13:35 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Tue, 2 Feb 1999 13:35:51 +0000 (13:35 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@1566 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/common/fileconf.cpp

index 4750baf77602f7082fff4ff36cbfbe0b5282b13c..7c358917a9735957860bf00f4fd45f7bfd32a6c2 100644 (file)
 // is 'c' a valid character in group name?
 // NB: wxCONFIG_IMMUTABLE_PREFIX and wxCONFIG_PATH_SEPARATOR must be valid chars,
 //     but _not_ ']' (group name delimiter)
-inline bool IsValid(char c) { return isalnum(c) || strchr("@_/-!.*%", c); }
+// NB2: we explicitly allow symbols from the 2nd half of the ASCII table
+inline bool IsValid(char c)
+{
+    return isalnum(c) || strchr("@_/-!.*%", c) || ((c & 0x80) != 0);
+}
 
 // compare functions for sorting the arrays
 static int CompareEntries(ConfigEntry *p1, ConfigEntry *p2);