#965126 p7zip processes OEM file names in .zip archives incorrectly

Package:
p7zip
Source:
p7zip
Description:
7zr file archiver with high compression ratio
Submitter:
unxed
Date:
2025-03-14 14:51:03 UTC
Severity:
normal
Tags:
#965126#5
Date:
2020-07-16 14:27:58 UTC
From:
To:
When I try to unzip archive made on Windows containing non-latin file names using p7zip, I get wrong file names.
This little patch is fixing an issue by selecting OEM code page based on current locale for archives made on Windows.
That is exactly that Windows internal zip archiver does.

Automated selection can be overriden by OEMCP environment variable. Locale-to-oem-cp translation table taken from Wine.

#965126#10
Date:
2020-07-16 14:40:27 UTC
From:
To:
this patch in upstream repo:
https://sourceforge.net/p/p7zip/bugs/187/#816e

#965126#15
Date:
2020-07-23 07:00:04 UTC
From:
To:
I confirm that the issue exists,
and that the proposed patch addresses it.

As many tools like GNOME's file-roller and MATE's engrama call p7zip,
this issue is very important, and tens of bug reports have been filed
over the years in various applications and bug trackers about it.
This patch will indirectly solve all of them.

Upstream p7zip hasn't been active in recent years,
but the proposed patch has already been accepted in szcnick's p7zip more
actively maintained fork:
https://github.com/szcnick/p7zip/commit/e56ea97d89eb0cd59603402496a8208238b3fda2

It'd be great if we had this included in bullseye.

#965126#20
Date:
2022-04-08 20:05:23 UTC
From:
To:
I'm affected too. Please fix.