惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

IT之家
IT之家
腾讯CDC
博客园 - Franky
S
SegmentFault 最新的问题
美团技术团队
阮一峰的网络日志
阮一峰的网络日志
J
Java Code Geeks
Y
Y Combinator Blog
Engineering at Meta
Engineering at Meta
Microsoft Security Blog
Microsoft Security Blog
MongoDB | Blog
MongoDB | Blog
I
InfoQ
T
Tailwind CSS Blog
Hugging Face - Blog
Hugging Face - Blog
B
Blog RSS Feed
博客园 - 叶小钗
博客园_首页
有赞技术团队
有赞技术团队
雷峰网
雷峰网
量子位
小众软件
小众软件
月光博客
月光博客
U
Unit 42
D
DataBreaches.Net

cuihao->blog

留言板备份 - cuihao->blog 局域网中通过 TUN 和软路由实现链路聚合 - cuihao->blog 网页中的 <body> 和 <html> 元素及其样式 雾霾中的星空 - cuihao->blog 把 /usr/share 压成 squashfs,以及写 systemd 的 mount 单元 负整数的整除和取余运算 - cuihao->blog 一些关于读书的事 - cuihao->blog Archlinux on ThinkPad L430 - cuihao->blog NetworkManager 配合使用 chnroutes (至少适用于 Arch) 【火狐三则】增强组件的PKGBUILD;不错的dial插件;同步profile到内存盘 - cuihao->blog 最后还是堕落到宋体了 - cuihao->blog
unzip 6.10b测试版,解决ZIP乱码问题 - cuihao->blog
cuihao · 2012-02-19 · via cuihao->blog

原来unzip有个-O参数,可以设定编码的。到了6.0版本不知为何移除了。后来ZIP乱码问题就一直困扰着群众。

今天翻了翻官网,发现测试版本6.10b重新添加了这个参数:

- Add -I and -O options for setting ISO and OEM character sets, respectively, used by UnZip when doing character set translations. This support is based on the unzip60-alt-iconv-utf8 patch suggested in an Info-ZIP forum thread and uses the iconv library which must be available. These options are enabled using the USE_ICONV_MAPPING compiler macro. Suggestions welcome on how to improve this limited character translation support.  

虽然这个版本2010年底就发布了,但能搜索到的信息几乎没有,真是奇怪。用官方新版本解决乱码不是很方便么……

于是写了个PKGBUILD,扔AUR了: unzip-beta

使用示例:

unzip 我是一个ZIP.zip -Ogbk