Commit c8365b0
committed
Remove old libicu max collation sentinel hack
For old libicu versions < 59 on RHEL 6 and 7 we had to add a hack in the NIF
driver to handle the max sortable sentinel `<<255,255,255,255>>` [1]. We don't
support those versions any longer, and since libicu version 59 the library will
automatically sort those as the highest values [2], so we can clean up our
collator NIF.
[1] #3491
[2] https://www.unicode.org/reports/tr35/tr35-collation.html#tailored-noncharacter-weights
> U+FFFF: This code point is tailored to have a primary weight higher than all
other characters. This allows the reliable specification of a range, such as
“Sch” ≤ X ≤ “Sch\uFFFF”, to include all strings starting with "sch" or
equivalent.1 parent 333ae93 commit c8365b0
2 files changed
Lines changed: 11 additions & 41 deletions
File tree
- src/couch
- priv/couch_ejson_compare
- test/eunit
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
18 | 18 | | |
19 | 19 | | |
20 | 20 | | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
21 | 30 | | |
22 | 31 | | |
23 | 32 | | |
| |||
73 | 82 | | |
74 | 83 | | |
75 | 84 | | |
76 | | - | |
77 | 85 | | |
78 | 86 | | |
79 | | - | |
80 | | - | |
81 | | - | |
82 | | - | |
83 | | - | |
84 | 87 | | |
85 | 88 | | |
86 | 89 | | |
| |||
469 | 472 | | |
470 | 473 | | |
471 | 474 | | |
472 | | - | |
473 | | - | |
474 | | - | |
475 | | - | |
476 | | - | |
477 | | - | |
478 | | - | |
479 | | - | |
480 | | - | |
481 | | - | |
482 | | - | |
483 | | - | |
484 | | - | |
485 | 475 | | |
486 | 476 | | |
487 | 477 | | |
488 | 478 | | |
489 | 479 | | |
490 | 480 | | |
491 | 481 | | |
492 | | - | |
493 | | - | |
494 | | - | |
495 | | - | |
496 | | - | |
497 | | - | |
498 | | - | |
499 | | - | |
500 | | - | |
501 | | - | |
502 | | - | |
503 | | - | |
504 | | - | |
505 | | - | |
506 | | - | |
507 | | - | |
508 | | - | |
509 | | - | |
510 | | - | |
511 | | - | |
512 | | - | |
513 | 482 | | |
514 | 483 | | |
515 | 484 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
36 | 36 | | |
37 | 37 | | |
38 | 38 | | |
39 | | - | |
| 39 | + | |
| 40 | + | |
40 | 41 | | |
41 | 42 | | |
42 | 43 | | |
| |||
0 commit comments