From f7ddfb44b71e59260a3e85b3f4efda4ae3dcad19 Mon Sep 17 00:00:00 2001 From: Doug Coleman Date: Sun, 24 Sep 2017 19:26:02 -0500 Subject: [PATCH] unicode.collation: Fixes 40k+ unit tests, but is a change from Unicode 9.0 to 10.0 It looks like the fourth weights in the collation algorithm now generate fewer 0xffff, particularly when the secondary and tertiary slots are zero. --- basis/unicode/collation/collation.factor | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/basis/unicode/collation/collation.factor b/basis/unicode/collation/collation.factor index 8142fe7533..3cbc876ba3 100644 --- a/basis/unicode/collation/collation.factor +++ b/basis/unicode/collation/collation.factor @@ -131,7 +131,7 @@ ducet get-global insert-helpers [ [ primary>> ] append-weights { 0 } ] [ [ secondary>> ] append-weights { 0 } ] [ [ tertiary>> ] append-weights { 0 } ] - [ [ variable-weight ] map ] + [ [ [ secondary>> ] [ tertiary>> ] bi [ zero? ] bi@ and not ] filter [ variable-weight ] map ] } cleave ] { } append-outputs-as ;