am 542324f4: am 0750f786: Merge "Remove explict use of ASCII encoding"
* commit '542324f4b48897d40adb010afc440261c599633d': Remove explict use of ASCII encoding
This commit is contained in:
commit
224c3735ee
|
@ -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