mirror of
https://github.com/f4exb/sdrangel.git
synced 2024-10-01 17:26:40 -04:00
Use correct encoding for file names in FileSource plugin (fixes #205)
This commit is contained in:
parent
6c71893143
commit
cf89e20fb9
@ -94,7 +94,11 @@ void FileSourceInput::openFileStream()
|
|||||||
m_ifstream.close();
|
m_ifstream.close();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#ifdef Q_OS_WIN
|
||||||
|
m_ifstream.open(m_fileName.toStdWString().c_str(), std::ios::binary | std::ios::ate);
|
||||||
|
#else
|
||||||
m_ifstream.open(m_fileName.toStdString().c_str(), std::ios::binary | std::ios::ate);
|
m_ifstream.open(m_fileName.toStdString().c_str(), std::ios::binary | std::ios::ate);
|
||||||
|
#endif
|
||||||
quint64 fileSize = m_ifstream.tellg();
|
quint64 fileSize = m_ifstream.tellg();
|
||||||
|
|
||||||
if (fileSize > sizeof(FileRecord::Header))
|
if (fileSize > sizeof(FileRecord::Header))
|
||||||
|
Loading…
Reference in New Issue
Block a user