File tree Expand file tree Collapse file tree 4 files changed +6
-6
lines changed
Expand file tree Collapse file tree 4 files changed +6
-6
lines changed Original file line number Diff line number Diff line change 1010
1111#include < boost/filesystem.hpp>
1212#include < boost/filesystem/fstream.hpp>
13- #include < boost/filesystem/detail/utf8_codecvt_facet.hpp>
1413
1514/* * Filesystem operations and types */
1615namespace fs = boost::filesystem;
Original file line number Diff line number Diff line change 6060#include < QFontDatabase>
6161#endif
6262
63- static fs::detail::utf8_codecvt_facet utf8;
64-
6563namespace GUIUtil {
6664
6765QString dateTimeStr (const QDateTime &date)
@@ -764,12 +762,12 @@ void setClipboard(const QString& str)
764762
765763fs::path qstringToBoostPath (const QString &path)
766764{
767- return fs::path (path.toStdString (), utf8 );
765+ return fs::path (path.toStdString ());
768766}
769767
770768QString boostPathToQString (const fs::path &path)
771769{
772- return QString::fromStdString (path.string (utf8 ));
770+ return QString::fromStdString (path.string ());
773771}
774772
775773QString formatDurationStr (int secs)
Original file line number Diff line number Diff line change @@ -1206,7 +1206,11 @@ void SetupEnvironment()
12061206 // A dummy locale is used to extract the internal default locale, used by
12071207 // fs::path, which is then used to explicitly imbue the path.
12081208 std::locale loc = fs::path::imbue (std::locale::classic ());
1209+ #ifndef WIN32
12091210 fs::path::imbue (loc);
1211+ #else
1212+ fs::path::imbue (std::locale (loc, new std::codecvt_utf8_utf16<wchar_t >()));
1213+ #endif
12101214}
12111215
12121216bool SetupNetworking ()
Original file line number Diff line number Diff line change @@ -54,7 +54,6 @@ EXPECTED_BOOST_INCLUDES=(
5454 boost/chrono/chrono.hpp
5555 boost/date_time/posix_time/posix_time.hpp
5656 boost/filesystem.hpp
57- boost/filesystem/detail/utf8_codecvt_facet.hpp
5857 boost/filesystem/fstream.hpp
5958 boost/multi_index/hashed_index.hpp
6059 boost/multi_index/ordered_index.hpp
You can’t perform that action at this time.
0 commit comments