Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

x/text/language: language Matcher does not properly support zh_HK (Hong Kong) #34408

pkpfr opened this issue Sep 19, 2019 · 1 comment


Copy link

@pkpfr pkpfr commented Sep 19, 2019

What version of Go are you using (go version)?

$ go version

Does this issue reproduce with the latest release?


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:


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.

@ALTree ALTree changed the title Language Matcher does not properly support zh_HK (Hong Kong) x/text/language: language Matcher does not properly support zh_HK (Hong Kong) Sep 19, 2019
@gopherbot gopherbot added this to the Unreleased milestone Sep 19, 2019
@toothrot toothrot added the NeedsInvestigation label Sep 20, 2019
Copy link

@toothrot toothrot commented Sep 20, 2019

/cc @mpvl who can weigh in on this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
None yet

No branches or pull requests

3 participants