mirror of
https://github.com/gnustep/libs-base.git
synced 2025-04-23 00:41:02 +00:00
Fix error in quoting for property lists
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@3104 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
8906271bce
commit
ec5df7b10a
1 changed files with 5 additions and 2 deletions
|
@ -393,6 +393,9 @@
|
|||
for (i = 0; i < _count; i++) {
|
||||
char val = _contents_chars[i];
|
||||
|
||||
if (isalnum(val) || strchr("$./_", val)) {
|
||||
continue;
|
||||
}
|
||||
switch (val) {
|
||||
case '\a':
|
||||
case '\b':
|
||||
|
@ -407,10 +410,10 @@
|
|||
break;
|
||||
|
||||
default:
|
||||
if (val == ' ') {
|
||||
if (val == ' ' || isprint(val)) {
|
||||
needQuote = YES;
|
||||
}
|
||||
else if (isprint(val) == 0) {
|
||||
else {
|
||||
length += 3;
|
||||
}
|
||||
break;
|
||||
|
|
Loading…
Reference in a new issue