mirror of
https://github.com/gnustep/libs-base.git
synced 2025-05-31 16:50:58 +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
cc26f0370e
commit
d66db64b0d
3 changed files with 6 additions and 1 deletions
|
@ -2,6 +2,9 @@
|
||||||
|
|
||||||
* Source/NSAttributedString.m: ([addAttributes:range:]) corrected
|
* Source/NSAttributedString.m: ([addAttributes:range:]) corrected
|
||||||
bogus range check (report by Michael Scheibler)
|
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>
|
2001-07-11 Adam Fedor <fedor@gnu.org>
|
||||||
|
|
||||||
|
|
|
@ -141,7 +141,7 @@ static void setupQuotables()
|
||||||
NSData *bitmap;
|
NSData *bitmap;
|
||||||
|
|
||||||
s = [[NSCharacterSet characterSetWithCharactersInString:
|
s = [[NSCharacterSet characterSetWithCharactersInString:
|
||||||
@"0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz$./_"]
|
@"0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz$._"]
|
||||||
mutableCopy];
|
mutableCopy];
|
||||||
[s invert];
|
[s invert];
|
||||||
quotables = [s copy];
|
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"
|
"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"
|
"This escape mechanism is used to permit the double quote mark to appear\n"
|
||||||
"inside a quoted string.\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"
|
"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"
|
"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"
|
"by a semicolon and the whole dictionary is delimited by curly brackets.\n"
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue