Fix property lists containing slashes

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@10441 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
Richard Frith-Macdonald 2001-07-12 15:30:34 +00:00
parent ac6507ad74
commit a8245ea16a
3 changed files with 6 additions and 1 deletions

View file

@ -2,6 +2,9 @@
* Source/NSAttributedString.m: ([addAttributes:range:]) corrected
bogus range check (report by Michael Scheibler)
* Source/NSString.m: setupQuotables() a slash should force a string
to be quoted ... property lists can otherwise confuse strings with
leading slashes as comments.
2001-07-11 Adam Fedor <fedor@gnu.org>

View file

@ -141,7 +141,7 @@ static void setupQuotables()
NSData *bitmap;
s = [[NSCharacterSet characterSetWithCharactersInString:
@"0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz$./_"]
@"0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz$._"]
mutableCopy];
[s invert];
quotables = [s copy];

View file

@ -131,6 +131,8 @@ property list which is set as the value of a default.\n\n");
"Special characters inside a quoted string are 'escaped' by a backslash.\n"
"This escape mechanism is used to permit the double quote mark to appear\n"
"inside a quoted string.\n"
"Unicode characters are represented as four digit hexadecimal numbers\n"
"prefixed by \\U\n"
"Arrays appear as a comma separated list of items delimited by brackets.\n"
"Dictionaries appear as a series of key-value pairs, each pair is followed\n"
"by a semicolon and the whole dictionary is delimited by curly brackets.\n"