mirror of
https://github.com/bitcoin/bitcoin.git
synced 2026-03-25 15:05:55 +01:00
Make fs::path::string() always return utf-8 string
This commit is contained in:
@@ -60,8 +60,6 @@
|
||||
#include <QFontDatabase>
|
||||
#endif
|
||||
|
||||
static fs::detail::utf8_codecvt_facet utf8;
|
||||
|
||||
namespace GUIUtil {
|
||||
|
||||
QString dateTimeStr(const QDateTime &date)
|
||||
@@ -764,12 +762,12 @@ void setClipboard(const QString& str)
|
||||
|
||||
fs::path qstringToBoostPath(const QString &path)
|
||||
{
|
||||
return fs::path(path.toStdString(), utf8);
|
||||
return fs::path(path.toStdString());
|
||||
}
|
||||
|
||||
QString boostPathToQString(const fs::path &path)
|
||||
{
|
||||
return QString::fromStdString(path.string(utf8));
|
||||
return QString::fromStdString(path.string());
|
||||
}
|
||||
|
||||
QString formatDurationStr(int secs)
|
||||
|
||||
Reference in New Issue
Block a user