am 0750f786: Merge "Remove explict use of ASCII encoding"
* commit '0750f78659758352490e599d057a39dc44e93340': Remove explict use of ASCII encoding
This commit is contained in:
commit
542324f4b4
|
@ -24,7 +24,7 @@ void get_my_path(char *s, size_t maxLen)
|
|||
CFStringRef executablePathString = CFURLCopyFileSystemPath(executableURL, kCFURLPOSIXPathStyle);
|
||||
CFRelease(executableURL);
|
||||
|
||||
CFStringGetCString(executablePathString, s, maxLen, kCFStringEncodingASCII);
|
||||
CFStringGetFileSystemRepresentation(executablePathString, s, maxLen);
|
||||
CFRelease(executablePathString);
|
||||
}
|
||||
|
||||
|
|
|
@ -36,7 +36,7 @@ void get_my_path(char s[PATH_MAX])
|
|||
CFStringRef executablePathString = CFURLCopyFileSystemPath(executableURL, kCFURLPOSIXPathStyle);
|
||||
CFRelease(executableURL);
|
||||
|
||||
CFStringGetCString(executablePathString, s, PATH_MAX-1, kCFStringEncodingASCII);
|
||||
CFStringGetFileSystemRepresentation(executablePathString, s, PATH_MAX-1);
|
||||
CFRelease(executablePathString);
|
||||
|
||||
char *x;
|
||||
|
|
Loading…
Reference in New Issue