Merge "Remove explict use of ASCII encoding" into lmp-mr1-dev

This commit is contained in:
Jean-Michel Trivi 2015-01-15 17:16:22 +00:00 committed by Android (Google) Code Review
commit c6c3c7d445
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;