diff --git a/aegisub/src/main.cpp b/aegisub/src/main.cpp index 3f4517f3a..1080e376d 100644 --- a/aegisub/src/main.cpp +++ b/aegisub/src/main.cpp @@ -118,7 +118,15 @@ bool AegisubApp::OnInit() { // Set the global locale to the utf-8 version of the current locale std::locale::global(boost::locale::generator().generate("")); + +#ifndef __APPLE__ + // Boost.FileSystem always uses UTF-8 for paths on OS X (since paths + // actually are required to be UTF-8 strings rather than just opaque binary + // blobs like on Linux), so there's no need to imbue the new locale and in + // fact it actively breaks things for unknown reasons when launching the + // app from Finder (but not from the command line). boost::filesystem::path::imbue(std::locale()); +#endif // Pointless `this` capture required due to http://gcc.gnu.org/bugzilla/show_bug.cgi?id=51494 agi::dispatch::Init([this](agi::dispatch::Thunk f) {