From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on inbox.vuxu.org X-Spam-Level: X-Spam-Status: No, score=-3.4 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,MAILING_LIST_MULTI,RCVD_IN_DNSWL_MED, T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.4 Received: (qmail 4179 invoked from network); 20 Dec 2023 16:22:39 -0000 Received: from zero.zsh.org (2a02:898:31:0:48:4558:7a:7368) by inbox.vuxu.org with ESMTPUTF8; 20 Dec 2023 16:22:39 -0000 ARC-Seal: i=1; cv=none; a=rsa-sha256; d=zsh.org; s=rsa-20210803; t=1703089359; b=sYLhkeGOPNAt8kgS7t8xdI7QM2EE/I6hKhyKm3g0zfj8OrGljG/0wrX8pC2zg0YftP/cIgj3V1 suRcjcjE1OTO11useXeEPlWUCHhQYW3CFfH5EqU6R0W4iPTdMQKavbhXyWtLR7FW/Gy7YDD5ZX gECg+LbyH4Xc45//qZGT7yoJfgBv0T43OPJmJZJKCITwh2OU2QClPWBG9KTnqRqEPAD6ogmKH9 JW5p/wmgGf9Bgk9Q4TsAcYqQVHtreDP6lJabaYlS0HDFh29jt9bX2AFmTn86xUAG+HF5y7AYU6 DOj2b5hdjCBIFBWYeqQEudZ2SRhl65KmbP7K9C2IRC6KdA==; ARC-Authentication-Results: i=1; zsh.org; iprev=pass (csmtpq2-prd-nl1-vmo.edge.unified.services) smtp.remote-ip=84.116.50.37; dkim=pass header.d=ntlworld.com header.s=meg.feb2017 header.a=rsa-sha256; dmarc=pass header.from=ntlworld.com; arc=none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed; d=zsh.org; s=rsa-20210803; t=1703089359; bh=cuZ2e/v8dTatzTVwBq719vn1prc5GYEGJJKfQuSw59o=; h=List-Archive:List-Owner:List-Post:List-Unsubscribe:List-Subscribe:List-Help: List-Id:Sender:Content-Transfer-Encoding:Content-Type:MIME-Version:Subject: References:In-Reply-To:Message-ID:To:From:Date:DKIM-Signature: DKIM-Signature; b=g7r9Ue6USMHE+XDUotTe3j5tYop+rA0P1he6NXPOeMsh170UpSfI2rI8SLr8+iZ5HrB6yPtPUJ JtxqtEc5YmqJ6hGvShb6uIbFspeszbuW54PcgExsgf+55//5ycsl6/t21y41elaGWYG3nXWTGl Dm//4p+IKysaiHYHe47coWi4M+58L5zkefnPB+5WTg7cS1sXRIV3kdMKdye61mD6SExUtikMFF jRF+U1b0rd/6PcH5/7qCE3UqBE82TwooGZiV2XTHBVJkuCYrLW3JpR7hiH5U1Wb8/EgP5SqtvF FX3vx+MpzzJ1g4EM/kCN+ZR48yfZojvHLDpCZeTvzfDiLw==; DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=zsh.org; s=rsa-20210803; h=List-Archive:List-Owner:List-Post:List-Unsubscribe: List-Subscribe:List-Help:List-Id:Sender:Content-Transfer-Encoding: Content-Type:MIME-Version:Subject:References:In-Reply-To:Message-ID:To:From: Date:Reply-To:Cc:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID; bh=sT3uuYjR3iHoWhf3VT71TgN47c+5r+vdLCl1kxeOha0=; b=iUR84M4kWzUh9mHVpVVCHr69kz Q8VDu1YM1XIKsDAXGixkDGzxR2RT1Hp9Em4tjZirHPPoYYsFXKxdAe0Bndo4LJaW0GU9lUdJ6lo8p 0Azh5Fr69UowcO6ptkMQyVRN4DzXXbUiwvTfO6RoOsUAtQrPCVW4JJkSt0L0d9MpBYwER/b2YGiJ5 KCk35UrhwrI/neVUr6fhFm7XaSfIILMt198XgsXZ8GY65lIjwgXKLCqBp8PajPDuY1jxpcypcRGhv vk4wG9WdUOpWEyfGKH2iqSqkygTx9S0dWsfo+Kn5U7VPYqWVvaDB0WbXTRaYhdRqzb2C73HE+/xKF kDiqYvAg==; Received: by zero.zsh.org with local id 1rFzLC-000CAj-OR; Wed, 20 Dec 2023 16:22:38 +0000 Authentication-Results: zsh.org; iprev=pass (csmtpq2-prd-nl1-vmo.edge.unified.services) smtp.remote-ip=84.116.50.37; dkim=pass header.d=ntlworld.com header.s=meg.feb2017 header.a=rsa-sha256; dmarc=pass header.from=ntlworld.com; arc=none Received: from csmtpq2-prd-nl1-vmo.edge.unified.services ([84.116.50.37]:9287) by zero.zsh.org with esmtps (TLS1.3:TLS_AES_256_GCM_SHA384:256) id 1rFzKx-000BsG-7K; Wed, 20 Dec 2023 16:22:25 +0000 Received: from oxsmtp3-prd-nl1-vmo.nl1.unified.services ([100.107.83.172]) by csmtpq2-prd-nl1-vmo.edge.unified.services with esmtp (Exim 4.93) (envelope-from ) id 1rFzKw-00HErR-46 for zsh-workers@zsh.org; Wed, 20 Dec 2023 17:22:22 +0100 Received: from oxbe23-prd-nl1-vmo.nl1.unified.services ([100.107.83.145]) by oxsmtp3-prd-nl1-vmo.nl1.unified.services with ESMTP id FzKwr6dGQt27bFzKwr1cQw; Wed, 20 Dec 2023 17:22:22 +0100 X-Env-Mailfrom: p.w.stephenson@ntlworld.com X-Env-Rcptto: zsh-workers@zsh.org X-SourceIP: 100.107.83.145 X-CNFS-Analysis: v=2.4 cv=L60bQfT8 c=1 sm=1 tr=0 ts=658314be cx=a_exe a=4EV+90gyzQY6HQuWV9fjcA==:117 a=Mjrq0Ny4MsUA:10 a=IkcTkHD0fZMA:10 a=pGLkceISAAAA:8 a=ONQ8W2rorVfvu-GTA7kA:9 a=QEXdDO2ut3YA:10 a=LMd5UE87qqmmzNJcGU7Q:22 X-Authenticated-Sender: p.w.stephenson@ntlworld.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ntlworld.com; s=meg.feb2017; t=1703089342; bh=cuZ2e/v8dTatzTVwBq719vn1prc5GYEGJJKfQuSw59o=; h=Date:From:To:In-Reply-To:References:Subject; b=HK/0HEYqZpd4vJa6NLImpYBpXtK8PZ5/fmXPbFvITMbdihIZl3H1ORUd2LK40g5R9 WbgniGtZJtPs3TTgkND2XyAztLzj7kQWpPoBZKo3CFSBTbz6uATLDOOX05GmWC4PXd 8DNfwK6PiywjZB2bIvW64cMGGdn10fj4/pfBouwL2Rm0Dn1f03o95zft2ru/BXBZ3w Zv73D95RIZP8ddsNTOHy8ubnZFw2+bHLnPjLccT1eIJgJin7jCQbonyzeInVQJuH0e +DMqmovJDFdwqgHX5jIAYQUv0GF67VsR55+U+V/AIXlawAY03hyttAzgF6CbA3PDmT McI8gZMuLfPzw== Date: Wed, 20 Dec 2023 16:22:22 +0000 (GMT) From: Peter Stephenson To: "Mark J. Reed" , zsh-workers@zsh.org Message-ID: <1743596511.1328269.1703089342052@mail.virginmedia.com> In-Reply-To: References: Subject: Re: [BUG] multibyte never set according to setopt/unsetopt output MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Priority: 3 Importance: Normal X-Mailer: Open-Xchange Mailer X-Originating-IP: 147.161.167.113 X-Originating-Client: open-xchange-appsuite X-CMAE-Envelope: MS4xfNUWDlWdZwkkkllG5orLvINhmPNxRbF5HqHs1X3fVJz0Pz4Na7tCRdmFpVelC4TjXiVZK1nVVSF/XCRn+7NHqATY5xA9iTXLee/nr21qIlyaVECGWbzw lsIkKrh0p+t9Ge3vDQhq4VeMh8UKy+3xqYVbQH9D+mQpNNO64K0u7H+iRau26E4pD80W1RcM88Liqp1YGfR8w1eP4GOPMFm6M0/LAS9XqvslmCFBkHD5ofEY HxR0F90XVOtxUDqSsHXZkrhWXa3wNmwxkgDc14L1XC0= X-Seq: 52422 Archived-At: X-Loop: zsh-workers@zsh.org Errors-To: zsh-workers-owner@zsh.org Precedence: list Precedence: bulk Sender: zsh-workers-request@zsh.org X-no-archive: yes List-Id: List-Help: , List-Subscribe: , List-Unsubscribe: , List-Post: List-Owner: List-Archive: > On 20/12/2023 16:04 GMT Mark J. Reed wrote: >=20 >=20 > 5.9, running on macOS. zsh fires up with multibyte enabled by default, wh= ich is visible in the way it handles multibyte characters (e.g. x=3D=C4=81;= echo $#xshows 1). I can turn the option off, and the behavior changes (e.g= . the same parameter has a length of 2).=C2=A0 >=20 > But `unsetopt` always shows `nomultibyte`, and `setopt` never shows `mult= ibyte`, regardless of the actual setting. You've fallen foul of the slightly odd way that options are shown by defaul= t. The key phrase in the manual for setopt is "minimize the differences from the default options". Since multibyte is on by default, it's not a difference. You should find if you unset it, however, that it shows up in setopt as "nomultibyte". If it didn't (it does for me but I'm on a recent unreleased version) that would indeed be a bug. If you want this to be a bit more rational, try "setopt kshoptionprint" which I use myself (except when trying out the above). It's still a bit quirky as it shows nomultibyte as off or on, i.e. it's still trying to show you differences form the default. I don't know of a "just show the **** options" option but it's possible as a function... pws