From nobody Fri May 26 14:30:44 2023 X-Original-To: bugs@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4QSS5K40grz4WnxN for ; Fri, 26 May 2023 14:30:45 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4QSS5J5FyHz3n3V for ; Fri, 26 May 2023 14:30:44 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1685111444; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=37s/BHdFlANhPfQhhRMXoZb4U9QQHz5t/l7GKtgLrTg=; b=SedKHpjQjVTgX/gIinxfBZbgQlAppX1uGKaKu6Ojk5EgplGLOIwb/p5vQoXeVXxhrjmTVJ wog7YrnMqpva6eJd17KVujxDLPTRsabXxYzDappM58FqFTjxsP6kg5jm+cX/eMHjG+XnFE D4UT92TYSRg9nXvwqNDkhvPBjes6IBqmHrmHtUAADZzWmEzo+CFtlRwm9FiF3yG6H27qXr xiYwZhEhfmOmJa/n2/i9PxfcYPCSdgriNPs3LKPwrRinKhiEemwfLAchJuN+HS3tq8qKvF m8NIWNlEE296U7NBnw6aOH8voVqhqFsVTgSigJ+Ygr3qrnqvT+vqL/MtL0XNyw== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1685111444; a=rsa-sha256; cv=none; b=xHk5t8Y2JQkWmA4xrFFkUWJp/UUEhPfOkVL6m910Cj61CKl5OSxeQRmcfnWQy0dqSDwKex b71s0w1NVC8xNQDUTYexBzg1AwqMb8OtyvuGsD/RQX7JcHOhsUuQDNXb1zse0N5CmtQQM/ EZ1Tn5KfJXcteebIW9DTJzx6ZB+T5R3crCtZOQM7nzpDF5ykFMCvB9vSFDQ7S0xP1dQVLu 8BQwhcA1rDUC1Kp62H9cfCFDZRjJFCNhIspXOGoRCxS4qikayrUDVWLFXr4bhAHCjxtkTp AGC/7ZV3oW3nsxMozIz7TYpTeSoPr8vCoF12s4aHeYyqlXdIBhMv2ARSGKe7Pw== Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2610:1c1:1:606c::50:1d]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4QSS5J4KCsz18sP for ; Fri, 26 May 2023 14:30:44 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org ([127.0.1.5]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id 34QEUiCt038918 for ; Fri, 26 May 2023 14:30:44 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 34QEUibI038917 for bugs@FreeBSD.org; Fri, 26 May 2023 14:30:44 GMT (envelope-from bugzilla-noreply@freebsd.org) X-Authentication-Warning: kenobi.freebsd.org: www set sender to bugzilla-noreply@freebsd.org using -f From: bugzilla-noreply@freebsd.org To: bugs@FreeBSD.org Subject: [Bug 271657] unzip doesn't know infozip (beta)'s -O and -I options Date: Fri, 26 May 2023 14:30:44 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: bin X-Bugzilla-Version: Unspecified X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: arthur200126@gmail.com X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: bugs@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version rep_platform op_sys bug_status bug_severity priority component assigned_to reporter Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated List-Id: Bug reports List-Archive: https://lists.freebsd.org/archives/freebsd-bugs List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-bugs@freebsd.org MIME-Version: 1.0 X-ThisMailContainsUnwantedMimeParts: N https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D271657 Bug ID: 271657 Summary: unzip doesn't know infozip (beta)'s -O and -I options Product: Base System Version: Unspecified Hardware: Any OS: Any Status: New Severity: Affects Only Me Priority: --- Component: bin Assignee: bugs@FreeBSD.org Reporter: arthur200126@gmail.com Info-ZIP's release engineering has stalled, but they have managed to tag a = beta with the unzip-iconv patch integrated.[1] Unzip 6.10b[2] introduces: [1]: https://en.wikipedia.org/wiki/Info-ZIP#Official_betas [2]: https://sourceforge.net/projects/infozip/files/unreleased%20Betas/UnZip%20b= etas/ " \"New\" options -I and -O (from a patch that has been out there awhile= )", " are used on UNIX to set the ISO and OEM code pages used for conversion= s.", [...] " -I [UNIX] ISO code page to use.", " -O [UNIX] OEM code page to use.", Now as unheard-of as Info-UnZIP 6.10b is, the two options have actually bee= n in use for a long time via unzip-iconv and Debian.[3] Any East Asian person w= ill probably point you to that fork of info-zip unzip to properly extra a Windo= ws ZIP file. [3]: https://github.com/emergy/unzip/blob/master/debian/patches/04-unzip60-alt-i= conv-utf8 Implementation-wise, libarchive has an encoding conversion function for ZIP files: just use archive_read_set_options() to set hdrencoding. There's some very weird logic to decide whether to use -I or -O depending on the zip's originating system, but I would just advice you to ignore it. There's also some logic to set defaults for these switches, but why even bother. PS: Unzip 6.10b has a rewritten argument parser with long options. That's v= ery new and seldom used, so let's not worry about it. It does make reading the = code a lot less torturous -- hats off to that. --=20 You are receiving this mail because: You are the assignee for the bug.=