mirror of
https://github.com/gnustep/libs-base.git
synced 2025-04-29 03:21:05 +00:00
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@32187 72102866-910b-0410-8b05-ffd578937521
31 lines
862 B
Objective-C
31 lines
862 B
Objective-C
/*
|
|
copyright 2004 Alexander Malmberg <alexander@malmberg.org>
|
|
*/
|
|
|
|
#import <Foundation/NSAutoreleasePool.h>
|
|
#import <Foundation/NSString.h>
|
|
|
|
#import "Testing.h"
|
|
|
|
int main(int argc, char **argv)
|
|
{
|
|
id plist;
|
|
NSAutoreleasePool *arp = [NSAutoreleasePool new];
|
|
|
|
plist=[[NSString stringWithContentsOfFile: @"non_ascii_utf8.plist"] propertyList];
|
|
PASS(plist!=nil, "utf8 plist works");
|
|
|
|
plist=[[NSString stringWithContentsOfFile: @"non_ascii_utf16.plist"] propertyList];
|
|
PASS(plist!=nil, "utf16 plist works");
|
|
|
|
plist=[[NSString stringWithContentsOfFile: @"non_ascii_utf8.strings"] propertyListFromStringsFileFormat];
|
|
PASS(plist!=nil, "utf8 strings file works");
|
|
|
|
plist=[[NSString stringWithContentsOfFile: @"non_ascii_utf16.strings"] propertyListFromStringsFileFormat];
|
|
PASS(plist!=nil, "utf16 strings file works");
|
|
|
|
[arp release]; arp = nil;
|
|
|
|
return 0;
|
|
}
|
|
|