x/text/language: matcher incorrect handling of zh #32141
Labels
NeedsInvestigation
Someone must examine and confirm this is a valid issue and not a duplicate of an existing one.
Milestone
What version of Go are you using (
go version
)?Does this issue reproduce with the latest release?
Yes
What operating system and processor architecture are you using (
go env
)?go env
OutputWhat did you do?
Building on CLDR LocalMatcher tests, I tested the case where both
zh-CN
andzh-HK
are supported andzh-TW
is desired. I switchedCN
andHK
relative positions in supported.https://play.golang.org/p/4bG57qBzNQr
What did you expect to see?
I expected
zh-HK
to be returned in both cases.What did you see instead?
zh-HK
is returned when HK is before CN in supported,en
is returned when CN precedes HK.The text was updated successfully, but these errors were encountered: