Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
unxed committed Jun 21, 2020
1 parent 1072528 commit fceeba9
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,2 +1,10 @@
# oemcp
Small utility to get corresponding OEM code page by current locale (posix). License: WTFPL
Small utility to get corresponding OEM code page from current locale (posix). License: WTFPL

Run oemcp_gen.pl inside wine/dlls/kernel32/nls from Wine source code tree to generate oemcp.sh

Why do you need this tool? Windows store file names in .zip archives using so called OEM code page. That's why you sometimes see wrong characters when trying to open .zip file.

So you can put oemcp.sh to /usr/bin (don't forget to do `chmod 755` on it), run export UNZIP="-O cp\`oemcp.sh\`" and have your archives encoding detected automatically based on system locale.

For sure OEM code page autodetection trick should be done inside unzip tool itself, but I do not know where actual development repo is, and lastest sourceforge snapshot fails to build on my system. Maybe one day I will find some time to implement it. Maybe not.

0 comments on commit fceeba9

Please sign in to comment.