x/text/language: language Matcher does not properly support zh_HK (Hong Kong) #34408
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
)?Reproduces on all processors and architectures
What did you do?
Tried to match the following language header from Google Chrome:
https://play.golang.org/p/hQ_FUehpgoZ
What did you expect to see?
Language matcher returns the Hong Kong region and Traditional Chinese character set
What did you see instead?
Language matcher is unaware of the Hong Kong region and falls back to the next language (Chinese or Taiwanese). Does not return traditional character set unless zh-Hant or zh-TW is explicitly set in the language header.
The text was updated successfully, but these errors were encountered: