Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Re: Test failure on OpenBSD

On Thu, Dec 08, 2016 at 09:44:55AM +0000, Peter Stephenson wrote:
> On Wed, 7 Dec 2016 21:26:52 -0600
> Matthew Martin <phy1729@xxxxxxxxx> wrote:
> > [[ $'\ua0' =~ '^.$' ]]   exits non-zero on OpenBSD-current both in
> > 5.2-test-2 and in 5.2. I swear the test was passing when I last updated
> > the port, but the test suite hasn't changed in the mean time.
> I can't think of an easy way of looking at this from here.  Do you get
> the same from an interactive command line, and with a completely clean
> environment except for LANG=en_US.UTF-8 or similar?

In   env -i LANG=en_US.UTF-8 zsh-5.2-test-2 -f   it still exits 1.

> That's fairly well through the tests so it's presumably specific to
> what's going on in the regex library, suggesting some failure to set up
> internationalisation properly down there.  Could some unhelpful
> environment variable be leaking in (that's not looked at by the main
> shell, so presumably not LC_ALL etc.)?
> Preusmably also
> [[ $'\ua0' == ? ]] && print OK

This does exit 0.

> does work or the test would have bombed out before that point.
> As it was already like this in 5.2 there's no point in holding up 5.3
> (we can issue an update if it does get fixed any time soon), but some
> research in OpenBSD regex set up is probably going to be useful.

That's why I tested 5.2 as well. Any tips on where to look or what is
the C equivalent of    [[ $'\ua0' =~ '^.$' ]] ?

Messages sorted by: Reverse Date, Date, Thread, Author