mirror of
https://github.com/gnustep/libs-base.git
synced 2025-04-22 16:33:29 +00:00
Better implementation of last fix
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@10442 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
a8245ea16a
commit
12cc53c280
2 changed files with 6 additions and 5 deletions
|
@ -2,9 +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.
|
||||
* Source/NSString.m: ([descriptionWithLocale:...]) as special case
|
||||
quote strings beginning with a slash ... 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];
|
||||
|
@ -3166,7 +3166,8 @@ handle_printf_atsign (FILE *stream,
|
|||
{
|
||||
setupQuotables();
|
||||
}
|
||||
if ([self rangeOfCharacterFromSet: quotables].length > 0)
|
||||
if ([self rangeOfCharacterFromSet: quotables].length > 0
|
||||
|| [self characterAtIndex: 0] == '/')
|
||||
{
|
||||
unichar tmp[length <= 1024 ? length : 0];
|
||||
unichar *ustring;
|
||||
|
|
Loading…
Reference in a new issue