Skip to content

Use system locale to select OEM code page… - #64

Merged
jinfeihan57 merged 1 commit into
p7zip-project:devfrom
unxed:oemcp
Jul 20, 2020
Merged

Use system locale to select OEM code page…#64
jinfeihan57 merged 1 commit into
p7zip-project:devfrom
unxed:oemcp

Conversation

@unxed

@unxed unxed commented Jul 17, 2020

Copy link
Copy Markdown
Contributor

… for zip archives made on dos/windows. This is just the same logic as windows internal zip archiver use. Can be overriden with OEMCP environment variable. *nix only currently.

…s/windows. Can be overriden with OEMCP environment variable.
@jinfeihan57

Copy link
Copy Markdown
Contributor

Thanks, I will check it later.

@jinfeihan57
jinfeihan57 merged commit e56ea97 into p7zip-project:dev Jul 20, 2020
@jinfeihan57

Copy link
Copy Markdown
Contributor

Thanks for your contribution.

@unxed

unxed commented Jul 20, 2020

Copy link
Copy Markdown
Contributor Author

"locale -> code page" translation table used in this code is generated from Wine sources, dlls/kernel32/nls, using this tool.

@unxed

unxed commented May 20, 2024

Copy link
Copy Markdown
Contributor Author

Better solution updated to also handle .zip archives with ANSI filenames can be found here:
https://sourceforge.net/p/sevenzip/bugs/2473/#2614

@unxed

unxed commented May 21, 2024

Copy link
Copy Markdown
Contributor Author

See #232 for updated version

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants