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:
CaS 2001-07-12 15:38:31 +00:00
parent d66db64b0d
commit f328cc64bb
2 changed files with 6 additions and 5 deletions

View file

@ -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;