From owner-freebsd-ports Thu Feb 7 14:10:19 2002 Delivered-To: freebsd-ports@hub.freebsd.org Received: from freefall.freebsd.org (freefall.FreeBSD.org [216.136.204.21]) by hub.freebsd.org (Postfix) with ESMTP id 3D1AB37B41C for ; Thu, 7 Feb 2002 14:10:05 -0800 (PST) Received: (from gnats@localhost) by freefall.freebsd.org (8.11.6/8.11.6) id g17MA5N96201; Thu, 7 Feb 2002 14:10:05 -0800 (PST) (envelope-from gnats) Received: from asiale.nttmcl.com (asiale.nttmcl.com [216.69.69.78]) by hub.freebsd.org (Postfix) with ESMTP id 78A7C37B419 for ; Thu, 7 Feb 2002 14:04:59 -0800 (PST) Received: (from gene@localhost) by asiale.nttmcl.com (8.11.6/8.11.6) id g17Lwb928538; Thu, 7 Feb 2002 13:58:37 -0800 (PST) (envelope-from gene) Message-Id: <200202072158.g17Lwb928538@asiale.nttmcl.com> Date: Thu, 7 Feb 2002 13:58:37 -0800 (PST) From: "Eugene M. Kim" Reply-To: "Eugene M. Kim" To: FreeBSD-gnats-submit@freebsd.org X-Send-Pr-Version: 3.113 Subject: ports/34714: unzip(1) breaks filenames in non-ASCII charset in certain .zip files Sender: owner-freebsd-ports@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org >Number: 34714 >Category: ports >Synopsis: unzip(1) breaks filenames in non-ASCII charset in certain .zip files >Confidential: no >Severity: non-critical >Priority: medium >Responsible: freebsd-ports >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Thu Feb 07 14:10:00 PST 2002 >Closed-Date: >Last-Modified: >Originator: Eugene M. Kim >Release: FreeBSD 5.0-CURRENT i386 >Organization: >Environment: System: FreeBSD asiale.nttmcl.com 5.0-CURRENT FreeBSD 5.0-CURRENT #1: Fri Jan 4 16:48:18 PST 2002 root@asiale.nttmcl.com:/home/root/build/usr/obj/usr/src/sys/IA-ASIALE i386 >Description: unzip (from archivers/unzip) has a built-in character conversion facility used to convert DOS-style extended ASCII letters to ISO 8859-1 letters. Because there is no way to turn off this conversion, unzip garbles names with non-extended-ASCII letters (notably letters from the EUC variant of CJK charsets) when extracting from a .zip file tagged with DOS flag. >How-To-Repeat: Using any tool that creates DOS-tagged .zip file (e.g. WinZip), create a .zip file which has files with euc(cn|jp|kr) filenames. Then extract the .zip file using unzip. >Fix: The patch below adds one command-line option -. (dash-dot) which tells unzip to turn off all character conversion. begin 644 unzip-5.42-noxlat.diff M9&EF9B`M=7).("XO9FEL96EO+F,@+BXO+BXO=V]R:RYN97FEP+34N-#(O9FEL96EO+F,) M36]N($1E8R`Q-R`Q-SHR,CHQ,R`R,#`Q"D!`("TQ.#'0@8V]D92!P86=E("HO"BT@("`@("`@($5X=%]!4T-)25]4 M3U].871I=F4H1RYF:6QE;F%M92P@1RYP26YF;RT^:&]S=&YU;2P@1RYP26YF M;RT^:&]S='9E$%T="P@*&]P=&EO;B`]/2!$4U]&3E],*2D["BL):68@*"%U M3RYD;W1F;&%G*0HK"2`@("!%>'1?05-#24E?5$]?3F%T:79E*$FEP M+F,@+BXO+BXO=V]R:RYN97FEP+F,)4V%T($IA;B`Q,R`Q,SHS.3HP-"`R,#`Q"BLK*R`N+B\N+B]W;W)K M+FYE=R]U;GII<"TU+C0R+W5N>FEP+F,)36]N($1E8R`Q-R`Q-SHR,3HS-B`R M,#`Q"D!`("TU-CDL-R`K-38Y+#@@0$`*("`@+6\@(&]V97)WFEP+F@@+BXO+BXO M=V]R:RYN97FEP+F@)5&AU M($%PFEP+F@)36]N($1E8R`Q-R`Q-SHP-CHT-"`R,#`Q"D!`("TT M-#4L-B`K-#0U+#<@0$`*("`@("!I;G0@6%]F;&%G.R`@("`@("`@("\J("U8 M.B!R97-T;W)E(&]W;F5R+W!R;W1E8W1I;VX@;W(@54E$+T=)1"!OF9L86<[("`@("`@("`@("\J("UZ.B!D M:7-P;&%Y('1H92!Z:7!F:6QE(&-O;6UE;G0@*&]N;'DL(&9ORelease-Note: >Audit-Trail: >Unformatted: To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-ports" in the body of the message