Re: FreeBSD_HEAD-tests - Build #1675 - Unstable

From: Andrey Chernov <ache_at_freebsd.org>
Date: Mon, 9 Nov 2015 06:00:06 +0300
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256

On 09.11.2015 0:46, Baptiste Daroussin wrote:
>> BTW, see other tests fails here in jenkins too, they looks
>> related to locale changes.
> 
> I will look into them.

About that one, it looks like collate support is broken in regex:
FAILED:  bin.sh.builtins.functional_test.case7

All our collate files was in order

A<all other A variants>-Za<all other a variants>-z

but CLDR collate organized as

aA<other a variant><other A variant><...>-zZ

Since RE ranges should use collate (per POSIX), new a-z includes now
every letter, small and big, excluding Z (for de_DE locale in the
test). It means, case7 two tests (below) should succeed even with new
collate, but both fails (second one includes various oO variants, with
umlaut too). Our regex code have collate support for single byte
locales, but it seems it is not in the working state now.

unset LC_ALL
LC_CTYPE=de_DE.ISO8859-1
export LC_CTYPE
LC_COLLATE=de_DE.ISO8859-1
export LC_COLLATE

c1=e
# o umlaut
c2=$(printf '\366')

case $c1$c2 in
[a-z][a-z]) ;;
*) echo wrong at $LINENO ;;
esac

case $c1$c2 in
[a-f][n-p]) ;;
*) echo wrong at $LINENO ;;
esac

- -- 
http://ache.vniz.net/
-----BEGIN PGP SIGNATURE-----

iQEcBAEBCAAGBQJWQAw2AAoJEKUckv0MjfbKRA0H/3c2n0slDo78mnxUv+wi7LKU
lppgVWkBitskMNq02OBaV4kOogbrwe5RAfhDqFhOIB4oISh/1qMZi2lCiSyx6wAY
ZRqaJXefMxLm+oFA9RECiSUrwPaAAS71spCVDBzVDZoRbHobJCkmt9/DdgDBE3P4
lzTucr2XAhXTBBmHIQKDzKBfnm8Pi/r6H74K1UkthCRe0TP01aW8QnVuJYrzIYE1
hPv7kbdO62w7NxARRaQQkMediDh5odl3pcIbH16EexnaCOG6ouTnY4dcCMwDOcz+
9IwBwh+Nn0ERICcHciYS9C5j+bSoP1BBAwwhYi2+kCitRGFOQ/U8PjYkBPbT0Xw=
=y4/D
-----END PGP SIGNATURE-----
Received on Mon Nov 09 2015 - 02:00:11 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:41:00 UTC