1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-27 00:57:50 +00:00

chinese unzip: add cnoize's patch which won't strip chinese chars.

PR:		58057
Submitted by:	Statue <statue@freebsd.sinica.edu.tw>
This commit is contained in:
Yen-Ming Lee 2003-10-25 09:51:05 +00:00
parent fe25d70b2c
commit 7c8f894085
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=92105
3 changed files with 32 additions and 0 deletions

View File

@ -100,6 +100,7 @@
SUBDIR += tocps
SUBDIR += ttf2pt1
SUBDIR += ttfm
SUBDIR += unzip
SUBDIR += ve
SUBDIR += vflib
SUBDIR += wangttf

17
chinese/unzip/Makefile Normal file
View File

@ -0,0 +1,17 @@
# New ports collection makefile for: zh-unzip
# Date created: 3 July 1999
# Whom: Shen Chuan-Hsing <statue@freebsd.sinica.edu.tw>
#
# $FreeBSD$
#
CATEGORIES= chinese
MAINTAINER= statue@freebsd.sinica.edu.tw
MASTERDIR= ${.CURDIR}/../../archivers/unzip
EXTRA_PATCHES= ${.CURDIR}/files/patch-fileio.c
.include "${MASTERDIR}/Makefile"

View File

@ -0,0 +1,14 @@
--- fileio.c.orig Wed Jun 5 03:41:04 2002
+++ fileio.c Wed Jun 5 03:44:33 2002
@@ -2135,8 +2135,11 @@
/* translate the Zip entry filename coded in host-dependent "extended
ASCII" into the compiler's (system's) internal text code page */
+#if 0
+/* cnoize is lazy to read it carefully */
Ext_ASCII_TO_Native(G.filename, G.pInfo->hostnum, G.pInfo->hostver,
G.pInfo->HasUxAtt, (option == DS_FN_L));
+#endif
if (G.pInfo->lcflag) /* replace with lowercase filename */
STRLOWER(G.filename, G.filename);