am 542324f4: am 0750f786: Merge "Remove explict use of ASCII encoding"

* commit '542324f4b48897d40adb010afc440261c599633d':
  Remove explict use of ASCII encoding
This commit is contained in:
Elliott Hughes 2014-11-21 22:32:42 +00:00 committed by Android Git Automerger
commit 224c3735ee
2 changed files with 2 additions and 2 deletions

View File

@ -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);
}

View File

@ -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;