diff options
author | Brian Cully <bjc@kublai.com> | 2009-10-22 16:52:34 -0400 |
---|---|---|
committer | Brian Cully <github.20.shmit@spamgourmet.com> | 2009-10-22 16:52:34 -0400 |
commit | 4f728be46b39caa908a1000b6f903fc4c4cb5ef4 (patch) | |
tree | 064fde0b62bbb09b1c6347334e8ae59fb33b4a60 /LispREPLController.m | |
parent | a4b4c79c6eecd3749f51ee6e036171c42955fcd1 (diff) | |
download | moxie-4f728be46b39caa908a1000b6f903fc4c4cb5ef4.tar.gz moxie-4f728be46b39caa908a1000b6f903fc4c4cb5ef4.zip |
Update for 10.5
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. |