https://bugs.kde.org/show_bug.cgi?id=82436
--- Comment #7 from Méven <[email protected]> --- Git commit abee4985ae7f7cb1d47d28476e45adecdf189473 by Méven Car. Committed on 03/11/2026 at 09:02. Pushed by meven into branch 'master'. kzip: set the UTF-8 flag on names that are not ASCII Before this change, KZip wrote names with QFile::encodeName and left the general purpose flag at 0. That flag value means code page 437, so Windows Explorer and 7-Zip showed a non-ASCII name written by KZip as mojibake. On Windows the name was also written in the ANSI code page instead of UTF-8. Now names are written in UTF-8, and bit 11 of the general purpose flag is set on a name that is not ASCII, in the local header and in the central directory. When KZip appends to an archive, it writes the central directory again for the entries already there, while their local headers stay as they are. These entries now keep their stored name, UTF-8 flag and Unicode Path field. Before, the central name came from the decoded string, so it no longer matched the local header, and the 64-bit sizes of a Zip64 entry went to the wrong offset when the name length changed. M +78 -15 autotests/karchivetest.cpp M +2 -0 autotests/karchivetest.h M +57 -7 src/kzip.cpp https://invent.kde.org/frameworks/karchive/-/commit/abee4985ae7f7cb1d47d28476e45adecdf189473 -- You are receiving this mail because: You are watching all bug changes.
