X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/169935ad4ed842421ef24470a06d1aa298f90fbe..4e13eb84aa259d039d44833fe496b9657a2af0cd:/src/common/fileconf.cpp diff --git a/src/common/fileconf.cpp b/src/common/fileconf.cpp index 4750baf776..7c358917a9 100644 --- a/src/common/fileconf.cpp +++ b/src/common/fileconf.cpp @@ -70,7 +70,11 @@ // 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);