]> Cypherpunks repositories - gostls13.git/commit
unicode: fix SpecialCase to follow its docs & respect explict no-op mappings
authorBrad Fitzpatrick <bradfitz@golang.org>
Thu, 7 Jun 2018 18:18:50 +0000 (18:18 +0000)
committerMarcel van Lohuizen <mpvl@golang.org>
Sun, 17 Jun 2018 08:48:39 +0000 (08:48 +0000)
commit05f8b44d5edc2960eff106e5e780cf83535d0533
treed9ed29585cfbfb9d6a1d3842adffc93a41753e66
parentb459e0045404d30dc14ea82d3b735f12b43df7d4
unicode: fix SpecialCase to follow its docs & respect explict no-op mappings

If SpecialCase contains an explicit CaseRange with zero deltas,
respect those and don't fall back to the default behavior.

Fixes #25636

Change-Id: Ic554c6b3dd462b1b39c75194eec469b6ff4aa55b
Reviewed-on: https://go-review.googlesource.com/117155
Run-TryBot: Brad Fitzpatrick <bradfitz@golang.org>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Marcel van Lohuizen <mpvl@golang.org>
src/unicode/letter.go
src/unicode/letter_test.go