-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
9 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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. |