mirror of
https://github.com/gnustep/libs-base.git
synced 2025-06-02 01:21:08 +00:00
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:
parent
343ceb58a8
commit
cc27fb0cb5
6 changed files with 92 additions and 92 deletions
|
@ -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]); \
|
||||
} \
|
||||
} \
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue