aboutsummaryrefslogtreecommitdiffstats
path: root/src/plugins/pinyin/3rdparty/pinyin/share/dicttrie.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/plugins/pinyin/3rdparty/pinyin/share/dicttrie.cpp')
-rw-r--r--src/plugins/pinyin/3rdparty/pinyin/share/dicttrie.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/plugins/pinyin/3rdparty/pinyin/share/dicttrie.cpp b/src/plugins/pinyin/3rdparty/pinyin/share/dicttrie.cpp
index e7d194f6..a084395e 100644
--- a/src/plugins/pinyin/3rdparty/pinyin/share/dicttrie.cpp
+++ b/src/plugins/pinyin/3rdparty/pinyin/share/dicttrie.cpp
@@ -245,7 +245,7 @@ bool DictTrie::load_dict(const char *filename, LemmaIdType start_id,
if (NULL == filename || end_id <= start_id)
return false;
- QFile file(filename);
+ QFile file(QString::fromUtf8(filename));
if (!file.open(QIODevice::ReadOnly))
return false;
QFile *fp = &file;