File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -66,7 +66,7 @@ + (void) initialize
66
66
67
67
// Try to find the path of the Git binary
68
68
char * path = getenv (" GIT_PATH" );
69
- if (path && [self acceptBinary: [NSString stringWithCString : path]])
69
+ if (path && [self acceptBinary: [NSString stringWithUTF8String : path]])
70
70
return ;
71
71
72
72
// No explicit path. Try it with "which"
Original file line number Diff line number Diff line change @@ -132,7 +132,7 @@ int main(int argc, const char** argv)
132
132
NSMutableArray * arguments = [NSMutableArray arrayWithCapacity: argc];
133
133
int i = 0 ;
134
134
for (i = 0 ; i < argc; i++)
135
- [arguments addObject: [NSString stringWithCString : argv[i]]];
135
+ [arguments addObject: [NSString stringWithUTF8String : argv[i]]];
136
136
137
137
if (!isatty (STDIN_FILENO) && fdopen (STDIN_FILENO, " r" ))
138
138
handleSTDINDiff (proxy);
You can’t perform that action at this time.
0 commit comments