Use UTF8String rather than cString

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@40393 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
Richard Frith-MacDonald 2017-03-17 09:45:02 +00:00
parent 343ceb58a8
commit cc27fb0cb5
6 changed files with 92 additions and 92 deletions

View file

@ -130,11 +130,11 @@ void testReadBasicType_##testName (char *pre, testType *expect, testType *toDeco
[unArch decodeValueOfObjCType:@encode(testType) at:toDecode]; \
NS_HANDLER \
NSLog(@"%@ %@", [localException name], [localException reason]); \
PASS(0, "can unarchive %s from %s", pre, [fileName cString]); \
PASS(0, "can unarchive %s from %s", pre, [fileName UTF8String]); \
NS_ENDHANDLER \
str2 = [unArch decodeObject]; \
PASS((VAL_TEST(*expect,*toDecode) && [str isEqual:str2]), \
"can unarchive %s from %s", pre, [fileName cString]); \
"can unarchive %s from %s", pre, [fileName UTF8String]); \
} \
} \
}