mirror of
https://github.com/gnustep/libs-base.git
synced 2025-05-30 00:11:26 +00:00
Bugfix for DO handle lookup error.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@14541 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
7fa87a9b4b
commit
cdd609243e
3 changed files with 49 additions and 31 deletions
|
@ -1,6 +1,4 @@
|
|||
#include <Foundation/NSString.h>
|
||||
#include <Foundation/NSData.h>
|
||||
#include <Foundation/NSException.h>
|
||||
#include <Foundation/Foundation.h>
|
||||
|
||||
// Fri Oct 23 02:58:47 MET DST 1998 dave@turbocat.de
|
||||
// cStringNoCopy -> cString
|
||||
|
@ -35,6 +33,19 @@ int main()
|
|||
NSMutableString *f1 = [NSMutableString stringWithString: @"ab"];
|
||||
NSStringEncoding *encs;
|
||||
|
||||
{
|
||||
NSURL *currentURL;
|
||||
NSData *data;
|
||||
|
||||
currentURL = [NSURL URLWithString:
|
||||
@"http:/www.foobar.org/PageWithAValid.plist"];
|
||||
data = [currentURL resourceDataUsingCache: NO];
|
||||
|
||||
if( data )
|
||||
printf(" YES \n");
|
||||
printf(" NO\n");
|
||||
exit(0);
|
||||
}
|
||||
#if 0
|
||||
{ // GSM test
|
||||
unichar buf[] = { 163, '[', ']', '{', '}', '\\', '^', '|', '~', '_' };
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue