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.
this patch in upstream repo: https://sourceforge.net/p/p7zip/bugs/187/#816e
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.
I'm affected too. Please fix.