From a4c9f5bd436dae1d99845f50da55bae733129f56 Mon Sep 17 00:00:00 2001 From: Matthias Andreas Benkard Date: Mon, 4 Aug 2008 16:20:18 +0200 Subject: Add fixnum-aware macros LRETAIN, LRELEASE, LDESTROY, LAUTORELEASE, LASSIGN_COPY, and LASSIGN. --- MLKStringOutputStream.m | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'MLKStringOutputStream.m') diff --git a/MLKStringOutputStream.m b/MLKStringOutputStream.m index 7ddd045..f3346e2 100644 --- a/MLKStringOutputStream.m +++ b/MLKStringOutputStream.m @@ -18,6 +18,7 @@ #import "MLKStringOutputStream.h" #import "runtime-compatibility.h" +#import "util.h" #import #import @@ -28,7 +29,7 @@ -(id) init { self = (id)[super initWithInputStream:nil - outputStream:AUTORELEASE ([[NSOutputStream alloc] initToMemory]) + outputStream:LAUTORELEASE ([[NSOutputStream alloc] initToMemory]) encoding:NSUnicodeStringEncoding]; return self; } @@ -36,7 +37,7 @@ -(NSString *) string { NSData *data = [_output propertyForKey:NSStreamDataWrittenToMemoryStreamKey]; - return AUTORELEASE ([[NSString alloc] initWithData:data + return LAUTORELEASE ([[NSString alloc] initWithData:data encoding:NSUnicodeStringEncoding]); } @end -- cgit v1.2.3