Skip to content

Commit

Permalink
Reset locales before and after ios_system flows
Browse files Browse the repository at this point in the history
  • Loading branch information
Carlos Cabanero committed Apr 8, 2024
1 parent 41a6ab0 commit ddf8a96
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions Sessions/MCPSession.m
Original file line number Diff line number Diff line change
Expand Up @@ -178,6 +178,8 @@ - (BOOL)_runCommand:(NSString *)cmdline skipHistoryRecord: (BOOL) skipHistoryRec

return NO;
}
setenv("LC_ALL", "UTF-8", 1);
setlocale(LC_ALL, "UTF-8");

if ([cmd isEqualToString:@"mosh"]) {
[self _runMoshWithArgs:cmdline];
Expand Down Expand Up @@ -222,6 +224,9 @@ - (BOOL)_runCommand:(NSString *)cmdline skipHistoryRecord: (BOOL) skipHistoryRec
[_cmdStream close];
_cmdStream = nil;
_sshClients = [[NSMutableArray alloc] init];

setenv("LC_ALL", "UTF-8", 1);
setlocale(LC_ALL, "UTF-8");
}

[_device prompt:@"blink> " secure:NO shell:YES];
Expand Down

0 comments on commit ddf8a96

Please sign in to comment.