zsh-workers
 help / color / mirror / code / Atom feed
From: Peter Stephenson <p.w.stephenson@ntlworld.com>
To: zsh-workers@zsh.org
Subject: Re: Test failures in --disable-multibyte
Date: Wed, 01 Jan 2020 18:01:42 +0000	[thread overview]
Message-ID: <64e62682e403332a89322b7f24983fa009c19fc0.camel@ntlworld.com> (raw)
In-Reply-To: <20200101134457.kdzfrmlyzjwptxaz@tarpaulin.shahaf.local2>

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



  reply	other threads:[~2020-01-01 18:02 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-12-31 18:39 Daniel Shahaf
2019-12-31 19:46 ` Peter Stephenson
2020-01-01 13:44   ` Daniel Shahaf
2020-01-01 18:01     ` Peter Stephenson [this message]
2020-01-02 11:30       ` Daniel Shahaf
2020-01-03 10:15         ` Peter Stephenson
2020-01-03 20:11           ` [PATCH] Make --disable-multibyte warn, since the test suite fails in that configuration. (was: Re: Test failures in --disable-multibyte) Daniel Shahaf
2020-01-05 18:20             ` Peter Stephenson
2020-01-05 19:13               ` Daniel Shahaf
2020-01-06  9:44                 ` Peter Stephenson
2019-12-31 20:23 ` Test failures in --disable-multibyte dana

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=64e62682e403332a89322b7f24983fa009c19fc0.camel@ntlworld.com \
    --to=p.w.stephenson@ntlworld.com \
    --cc=zsh-workers@zsh.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/zsh/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).