mirror of
https://github.com/gnustep/libs-base.git
synced 2025-06-01 09:02:01 +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
d66db64b0d
commit
f328cc64bb
2 changed files with 6 additions and 5 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue