Tweaks to support UTF-8 literal string encoding supported by more recent

compilers.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@33972 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
rfm 2011-10-12 14:28:44 +00:00
parent 3cc9fb2c50
commit 48fa5991ab
7 changed files with 408 additions and 231 deletions

View file

@ -15,7 +15,7 @@ static NSOutputStream *defaultOutput = nil;
static NSInputStream *defaultInput = nil;
static int byteCount = 0;
static const uint8_t * rawstring = "GET / HTTP/1.0\r\n\r\n";
static const uint8_t *rawstring = (const uint8_t*)"GET / HTTP/1.0\r\n\r\n";
static BOOL done = NO;
@interface Listener : NSObject
@ -70,6 +70,7 @@ NSLog(@"Got %d on %p", streamEvent, theStream);
{
// it is possible that readSize<0 but not an Error.
// For example would block
NSLog(@"%@", [defaultInput streamError]);
NSAssert([defaultInput streamError]==nil, @"read error");
}
if (readSize == 0)