Skip to content

Fix extraction to directories with unicode names when using the Extract file menu

Before this patch, BatchExtract::setDirectory() will ignore directories like " " (a single tab) or "This is an emoji 😳" because QUrl::toDisplayString() returns a percent-encoded name which does not get percent-decoded.

As QUrl::toDisplayString() seems to always return percent-encoded strings regardless of FormattingOption (see https://stackoverflow.com/questions/24343582/convert-qurl-with-percent-encoding-into-string/24394362#24394362), QUrl::path() is used as it defaults to QUrl::FullyDecoded.

This bug was only present on the extract file menu (via dolphin context menu).

BUG: 408186

Edited by Jan Paul Batrina

Merge request reports