diff options
Diffstat (limited to 'LispREPLController.m')
-rw-r--r-- | LispREPLController.m | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/LispREPLController.m b/LispREPLController.m index 889b9f1..d8a9f0e 100644 --- a/LispREPLController.m +++ b/LispREPLController.m @@ -575,12 +575,14 @@ enum repl_lock_condition { NO_DATA, HAS_DATA }; while ([theUpdates count] > 0) { NSAttributedString *replString; NSData *updateData; + NSString *updateStr; NSTextStorage *ts; updateData = [theUpdates objectAtIndex: 0]; - replString = [NSAttributedString attributedStringWithString: - [NSString stringWithCString: [updateData bytes] - length: [updateData length]] + updateStr = [[[NSString alloc] initWithBytes: [updateData bytes] + length: [updateData length] + encoding: NSUTF8StringEncoding] autorelease]; + replString = [NSAttributedString attributedStringWithString: updateStr attributes: [self REPLOutputAttributes]]; // Insert before values, and update marks. |