mirror of
https://github.com/gnustep/libs-base.git
synced 2025-04-22 16:33:29 +00:00
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:
parent
ac6507ad74
commit
a8245ea16a
3 changed files with 6 additions and 1 deletions
|
@ -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>
|
||||
|
||||
|
|
|
@ -141,7 +141,7 @@ static void setupQuotables()
|
|||
NSData *bitmap;
|
||||
|
||||
s = [[NSCharacterSet characterSetWithCharactersInString:
|
||||
@"0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz$./_"]
|
||||
@"0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz$._"]
|
||||
mutableCopy];
|
||||
[s invert];
|
||||
quotables = [s copy];
|
||||
|
|
|
@ -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"
|
||||
|
|
Loading…
Reference in a new issue