Skip to content
Snippets Groups Projects
Commit 695fdf4e authored by Olivier Langella's avatar Olivier Langella
Browse files

utf8 pwiz problem fixed

parent cbf97f8a
No related branches found
No related tags found
No related merge requests found
......@@ -61,7 +61,12 @@ pwiz::identdata::IdentDataFile * getPwizIdentDataFile(const QString & filename)
//qDebug() << " env=" << localeconv () << " lc->decimal_point " << lc->decimal_point;
pwiz::identdata::IdentDataFile * dataFile;
try {
dataFile = new pwiz::identdata::IdentDataFile(filename.toStdString());
QByteArray byte_array = filename.toLocal8Bit();
std::string res = "";
for (char c : byte_array) {
res += c;
}
dataFile = new pwiz::identdata::IdentDataFile(res);
}
catch (std::exception& error)
{
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment