21.28. unzip 解開中文檔名變亂碼?

在 Windows 中用 Winzip 壓縮中文檔名的檔案, 抓到 FreeBSD 底下 unzip 會變成亂碼。

安裝 chinese/unzip

或是利用下面有個 leeym 大大的 patch:

--- unzpriv.h.orig      Thu Apr 10 02:13:13 2003
+++ unzpriv.h   Thu Apr 10 02:24:23 2003
@@ -2333,7 +2333,7 @@
 #    endif
 #    define _OEM_INTERN(str1) {register uch *p;\
        for (p=(uch *)(str1); *p; p++)\
-         *p = native((*p & 0x80) ? oem2iso[*p & 0x7f] : *p);}
+         *p = native(/*(*p & 0x80) ? oem2iso[*p & 0x7f] :*/ *p);}
 #  endif
 #endif