]> Cypherpunks repositories - gostls13.git/commit
exp/locale/collate: add code to ignore tests with (unpaired) surrogates.
authorMarcel van Lohuizen <mpvl@golang.org>
Fri, 24 Aug 2012 13:56:07 +0000 (15:56 +0200)
committerMarcel van Lohuizen <mpvl@golang.org>
Fri, 24 Aug 2012 13:56:07 +0000 (15:56 +0200)
commitc61a185f35fd58a200df7eebc2138af1b52a0c5e
tree5178ad06691d07d5a59e8ffb6c10f81abfe992e0
parent75af013229e9d22da8ed3272f9f936016b085365
exp/locale/collate: add code to ignore tests with (unpaired) surrogates.
In the regtest data, surrogates are assigned primary weights based on
the surrogate code point value.  Go now converts surrogates to FFFD, however,
meaning that the primary weight is based on this code point instead.
This change drops tests with surrogates and lets the tests pass.

R=r
CC=golang-dev
https://golang.org/cl/6461100
src/pkg/exp/locale/collate/regtest.go