Bug 9626
| Summary: | Safari sends wrong Accept-Language codes for Chinese | ||
|---|---|---|---|
| Product: | WebKit | Reporter: | Nicholas Shanks <nickshanks> |
| Component: | Page Loading | Assignee: | Nobody <webkit-unassigned> |
| Status: | RESOLVED DUPLICATE | ||
| Severity: | Normal | CC: | ap |
| Priority: | P2 | ||
| Version: | 420+ | ||
| Hardware: | Mac | ||
| OS: | OS X 10.4 | ||
Nicholas Shanks
When the AppleLanguages pref is set to Simplified Chinese, Safari should be sending "zh-Hans" as it's Accept-Language, but is instead sending "zh-CN".
Likewise for Traditional Chinese it should be "zh-Hant" but is instead "zh-TW" (which is not correct for Hong Kong, zh-Hant-HK, for example).
The current codes should probably be sent too, but with a q-value of 0.95.
| Attachments | ||
|---|---|---|
| Add attachment proposed patch, testcase, etc. |
Alexey Proskuryakov
It has been decided to wait for Accept-Language to be fixed in NSURLConnection. Please note that my proposed patch in bug 3510 did already contain a fix for this issue. This bug also has a discussion of why we cannot send weights in Accept-Language strings.
However, I encourage you to file a separate Radar report for Chinese, mentioning rdar://problem/4076004 and rdar://problem/4410031.
*** This bug has been marked as a duplicate of 3510 ***