From 9e6e31cfb2c3a483cf7ab4be3b16f5341f36cbcd Mon Sep 17 00:00:00 2001 From: Benau Date: Sat, 6 Jul 2019 16:33:55 +0800 Subject: [PATCH] Allow osx app bundle running inside unicode directory --- src/io/file_manager.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/io/file_manager.cpp b/src/io/file_manager.cpp index 49329e0c5..0249f0329 100644 --- a/src/io/file_manager.cpp +++ b/src/io/file_manager.cpp @@ -90,7 +90,7 @@ bool macSetBundlePathIfRelevant(std::string& data_dir) CFStringRef cf_string_ref = CFURLCopyFileSystemPath(main_bundle_URL, kCFURLPOSIXPathStyle); assert(cf_string_ref); - CFStringGetCString(cf_string_ref, path, 1024, kCFStringEncodingASCII); + CFStringGetCString(cf_string_ref, path, 1024, kCFStringEncodingUTF8); CFRelease(main_bundle_URL); CFRelease(cf_string_ref);