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 10
10
11
11
#include < boost/filesystem.hpp>
12
12
#include < boost/filesystem/fstream.hpp>
13
- #include < boost/filesystem/detail/utf8_codecvt_facet.hpp>
14
13
15
14
/* * Filesystem operations and types */
16
15
namespace fs = boost::filesystem;
Original file line number Diff line number Diff line change 60
60
#include < QFontDatabase>
61
61
#endif
62
62
63
- static fs::detail::utf8_codecvt_facet utf8;
64
-
65
63
namespace GUIUtil {
66
64
67
65
QString dateTimeStr (const QDateTime &date)
@@ -764,12 +762,12 @@ void setClipboard(const QString& str)
764
762
765
763
fs::path qstringToBoostPath (const QString &path)
766
764
{
767
- return fs::path (path.toStdString (), utf8 );
765
+ return fs::path (path.toStdString ());
768
766
}
769
767
770
768
QString boostPathToQString (const fs::path &path)
771
769
{
772
- return QString::fromStdString (path.string (utf8 ));
770
+ return QString::fromStdString (path.string ());
773
771
}
774
772
775
773
QString formatDurationStr (int secs)
Original file line number Diff line number Diff line change @@ -1206,7 +1206,11 @@ void SetupEnvironment()
1206
1206
// A dummy locale is used to extract the internal default locale, used by
1207
1207
// fs::path, which is then used to explicitly imbue the path.
1208
1208
std::locale loc = fs::path::imbue (std::locale::classic ());
1209
+ #ifndef WIN32
1209
1210
fs::path::imbue (loc);
1211
+ #else
1212
+ fs::path::imbue (std::locale (loc, new std::codecvt_utf8_utf16<wchar_t >()));
1213
+ #endif
1210
1214
}
1211
1215
1212
1216
bool SetupNetworking ()
Original file line number Diff line number Diff line change @@ -54,7 +54,6 @@ EXPECTED_BOOST_INCLUDES=(
54
54
boost/chrono/chrono.hpp
55
55
boost/date_time/posix_time/posix_time.hpp
56
56
boost/filesystem.hpp
57
- boost/filesystem/detail/utf8_codecvt_facet.hpp
58
57
boost/filesystem/fstream.hpp
59
58
boost/multi_index/hashed_index.hpp
60
59
boost/multi_index/ordered_index.hpp
You can’t perform that action at this time.
0 commit comments