Skip to content

Commit 9e6e31c

Browse files
committed
Allow osx app bundle running inside unicode directory
1 parent 2818a18 commit 9e6e31c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/io/file_manager.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ bool macSetBundlePathIfRelevant(std::string& data_dir)
9090
CFStringRef cf_string_ref = CFURLCopyFileSystemPath(main_bundle_URL,
9191
kCFURLPOSIXPathStyle);
9292
assert(cf_string_ref);
93-
CFStringGetCString(cf_string_ref, path, 1024, kCFStringEncodingASCII);
93+
CFStringGetCString(cf_string_ref, path, 1024, kCFStringEncodingUTF8);
9494
CFRelease(main_bundle_URL);
9595
CFRelease(cf_string_ref);
9696

0 commit comments

Comments
 (0)