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

Re: Test failure on OpenBSD



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?

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

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.

pws



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