Allow osx app bundle running inside unicode directory
This commit is contained in:
parent
2818a1870e
commit
9e6e31cfb2
@ -90,7 +90,7 @@ bool macSetBundlePathIfRelevant(std::string& data_dir)
|
|||||||
CFStringRef cf_string_ref = CFURLCopyFileSystemPath(main_bundle_URL,
|
CFStringRef cf_string_ref = CFURLCopyFileSystemPath(main_bundle_URL,
|
||||||
kCFURLPOSIXPathStyle);
|
kCFURLPOSIXPathStyle);
|
||||||
assert(cf_string_ref);
|
assert(cf_string_ref);
|
||||||
CFStringGetCString(cf_string_ref, path, 1024, kCFStringEncodingASCII);
|
CFStringGetCString(cf_string_ref, path, 1024, kCFStringEncodingUTF8);
|
||||||
CFRelease(main_bundle_URL);
|
CFRelease(main_bundle_URL);
|
||||||
CFRelease(cf_string_ref);
|
CFRelease(cf_string_ref);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user