Merge "Remove explict use of ASCII encoding"
This commit is contained in:
commit
0750f78659
2 changed files with 2 additions and 2 deletions
|
|
@ -24,7 +24,7 @@ void get_my_path(char *s, size_t maxLen)
|
||||||
CFStringRef executablePathString = CFURLCopyFileSystemPath(executableURL, kCFURLPOSIXPathStyle);
|
CFStringRef executablePathString = CFURLCopyFileSystemPath(executableURL, kCFURLPOSIXPathStyle);
|
||||||
CFRelease(executableURL);
|
CFRelease(executableURL);
|
||||||
|
|
||||||
CFStringGetCString(executablePathString, s, maxLen, kCFStringEncodingASCII);
|
CFStringGetFileSystemRepresentation(executablePathString, s, maxLen);
|
||||||
CFRelease(executablePathString);
|
CFRelease(executablePathString);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -36,7 +36,7 @@ void get_my_path(char s[PATH_MAX])
|
||||||
CFStringRef executablePathString = CFURLCopyFileSystemPath(executableURL, kCFURLPOSIXPathStyle);
|
CFStringRef executablePathString = CFURLCopyFileSystemPath(executableURL, kCFURLPOSIXPathStyle);
|
||||||
CFRelease(executableURL);
|
CFRelease(executableURL);
|
||||||
|
|
||||||
CFStringGetCString(executablePathString, s, PATH_MAX-1, kCFStringEncodingASCII);
|
CFStringGetFileSystemRepresentation(executablePathString, s, PATH_MAX-1);
|
||||||
CFRelease(executablePathString);
|
CFRelease(executablePathString);
|
||||||
|
|
||||||
char *x;
|
char *x;
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue