Skip to content
Snippets Groups Projects
Commit 801c9434 authored by George Nachman's avatar George Nachman
Browse files

Adhoc build 3.0.20160818_215555

parent a7ed57d2
No related branches found
No related tags found
No related merge requests found
Loading
Loading
@@ -1618,6 +1618,28 @@ ITERM_WEAKLY_REFERENCEABLE
forceEncoding:(BOOL)forceEncoding
canBroadcast:(BOOL)canBroadcast {
const NSStringEncoding encoding = forceEncoding ? optionalEncoding : _terminal.encoding;
NSLog(@"writeTaskImpl called");
@try {
NSLog(@"Encoding = %@", @(encoding));
NSLog(@"For the record, utf8 encoding is %@", @(NSUTF8StringEncoding));
NSLog(@"Class of string is %@", NSStringFromClass([string class]));
NSLog(@"Length of string is %@", @([string length]));
NSLog(@"Iterating over bytes of string");
} @catch (NSException *exception) {
NSLog(@"Got exception: %@", exception);
}
for (NSUInteger i = 0; i < [string length]; i++) {
@try {
unichar c = [string characterAtIndex:i];
NSLog(@"Character at index %@ is %@", @(i), @(c));
} @catch (NSException *exception) {
NSLog(@"Caled to get character with exception %@", exception);
}
}
NSLog(@"Calling dataUsingEncoding:allowLossyConversion:YES");
NSLog(@"Result is: %@", [string dataUsingEncoding:NSUTF8StringEncoding allowLossyConversion:YES]);
if (gDebugLogging) {
NSArray *stack = [NSThread callStackSymbols];
DLog(@"writeTaskImpl session=%@ encoding=%@ forceEncoding=%@ canBroadcast=%@: called from %@",
Loading
Loading
Loading
Loading
@@ -380,6 +380,7 @@ const int kNumberOfSpacesPerTabNoConversion = -1;
BOOL block = NO;
NSRange range;
range.location = 0;
NSLog(@"Pasting. Bytes per call = %@", @(_pasteContext.bytesPerCall));
range.length = MIN(_pasteContext.bytesPerCall, [_buffer length]);
if (range.length > 0) {
if (_pasteContext.blockAtNewline) {
Loading
Loading
@@ -394,6 +395,7 @@ const int kNumberOfSpacesPerTabNoConversion = -1;
block = YES;
}
}
NSLog(@"Pasting range %@ of string with length %@", NSStringFromRange(range), @(_buffer.length));
[_delegate pasteHelperWriteString:[_buffer substringWithRange:range]];
}
[_buffer replaceCharactersInRange:range withString:@""];
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment