ark: replace archive_entry_pathname_w() with archive_entry_pathname_utf8()

archive_entry_pathname_w() is supposedly going to be removed/deprecated in
libarchive v4, see bottom of:
https://github.com/libarchive/libarchive/wiki/Filenames

Signed-off-by: Ivailo Monev <xakepa10@laimg.moc>
This commit is contained in:
Ivailo Monev 2019-11-29 02:24:18 +00:00
parent 85f69572f7
commit de80280f54

View file

@ -631,7 +631,7 @@ void LibArchiveInterface::emitEntryFromArchiveEntry(struct archive_entry *aentry
{
ArchiveEntry e;
e[FileName] = QDir::fromNativeSeparators(QString::fromWCharArray(archive_entry_pathname_w(aentry)));
e[FileName] = QDir::fromNativeSeparators(QString::fromUtf8(archive_entry_pathname_utf8(aentry)));
e[InternalID] = e[FileName];
const QString owner = QString::fromAscii(archive_entry_uname(aentry));