From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on inbox.vuxu.org X-Spam-Level: X-Spam-Status: No, score=-1.0 required=5.0 tests=MAILING_LIST_MULTI, RCVD_IN_DNSWL_NONE autolearn=ham autolearn_force=no version=3.4.2 Received: from primenet.com.au (ns1.primenet.com.au [203.24.36.2]) by inbox.vuxu.org (OpenSMTPD) with ESMTP id 1ec9f6d4 for ; Wed, 1 Jan 2020 18:02:31 +0000 (UTC) Received: (qmail 27410 invoked by alias); 1 Jan 2020 18:02:24 -0000 Mailing-List: contact zsh-workers-help@zsh.org; run by ezmlm Precedence: bulk X-No-Archive: yes List-Id: Zsh Workers List List-Post: List-Help: List-Unsubscribe: X-Seq: 45182 Received: (qmail 10261 invoked by uid 1010); 1 Jan 2020 18:02:24 -0000 X-Qmail-Scanner-Diagnostics: from know-smtprelay-omc-8.server.virginmedia.net by f.primenet.com.au (envelope-from , uid 7791) with qmail-scanner-2.11 (clamdscan: 0.102.1/25677. spamassassin: 3.4.2. Clear:RC:0(80.0.253.72):SA:0(-2.0/5.0):. Processed in 2.865771 secs); 01 Jan 2020 18:02:24 -0000 X-Envelope-From: p.w.stephenson@ntlworld.com X-Qmail-Scanner-Mime-Attachments: | X-Qmail-Scanner-Zip-Files: | Received-SPF: pass (ns1.primenet.com.au: SPF record at _smtprelay.virginmedia.com designates 80.0.253.72 as permitted sender) X-Originating-IP: [86.16.88.158] X-Authenticated-User: p.w.stephenson@ntlworld.com X-Spam: 0 X-Authority: v=2.3 cv=X6h81lbe c=1 sm=1 tr=0 a=MiHCjVqLJ44lE3bxSlffFQ==:117 a=MiHCjVqLJ44lE3bxSlffFQ==:17 a=jpOVt7BSZ2e4Z31A5e1TngXxSK0=:19 a=IkcTkHD0fZMA:10 a=SvzM0VrsiskjhteQw9cA:9 a=P69OF5x1DECMbFSe:21 a=nmLUQQVsii5z1BI1:21 a=QEXdDO2ut3YA:10 Message-ID: <64e62682e403332a89322b7f24983fa009c19fc0.camel@ntlworld.com> Subject: Re: Test failures in --disable-multibyte From: Peter Stephenson To: zsh-workers@zsh.org Date: Wed, 01 Jan 2020 18:01:42 +0000 In-Reply-To: <20200101134457.kdzfrmlyzjwptxaz@tarpaulin.shahaf.local2> References: <20200101134457.kdzfrmlyzjwptxaz@tarpaulin.shahaf.local2> Content-Type: text/plain; charset="UTF-8" X-Mailer: Evolution 3.28.5-0ubuntu0.18.04.1 Mime-Version: 1.0 Content-Transfer-Encoding: 8bit X-CMAE-Envelope: MS4wfNLzUUBY4wndvUTrhlFf271tm2X3pRhUNoLE77PW6Ms4TUwr+qMHcUKEI7+yx1nmkV/KxkkuwDbpRDcBCga4riwO62n7mFDoLltZPm+vwWQR7/Q1C1O1 MKLyUi8++YCm7wlXsEk5QDtVSfCqyvxX7UBlglX6sukMVMYMc9MBZ/oh On Wed, 2020-01-01 at 13:44 +0000, Daniel Shahaf wrote: > > It's not generally expected you'll want to disable multibyte explicitly, > > but it tests the case you get if you have a system which doesn't have > > the required multibyte support. It's not clear if zsh gets compiled on > > such systems now --- they won't be very common but there might be some > > deliberately reduced systems for low-level use. These only need testing > > in a similarly limited fashion. > > This state of affairs doesn't sound quite right. If those codepaths > need testing, the test suite should be made to pass in that > configuration, so that bugfixes would be able to be tested for > unintended side effects. With no working test suite and no known > users, it sounds like --disable-multibyte is _de facto_ unsupported, > but we are not ready to officially pull the plug on it due to the > possibility of it being used on a C99-less embedded system somewhere. > So, how about having NEWS in 5.8 say that unless someone asks us to > continue supporting --disable-multibyte, it will become unsupported > and may be removed? You're correct, it's de facto unsupported. The difference is largely whether anyone gets around to fixing it, which is hard to predict --- I don't think the problems are likely to be hard. So certainly it would be useful to get interest. Alas, experience suggests most people don't take much notice until the point where it actually stops working for them. So as long as we point out there are problems, I think whatever takes the least number of hostages to fortune is probably the right thing to say. With the changes being largely minor and even cosmetic (but they're certainly not all cosmetic) it probably doesn't make sense to remove it any time soon. But it could rot further, so possibly a warning is sensible. Of course, the best solution would be someone relying on simple character handling taking it over themselves. > (For what it's worth, even on embedded systems it should be trivial to > implement the requisite standard library functions¹ for the ASCII-only > subset of inputs in terms of the C89 standard library, which we > already require.) This is pure guesswork, so if you have a solid estimate of how much work that is you're ahead of me, but I'd be surprised if this was easier in practice than fixing up the simple mode directly, although it is more future-proof. pws