Closed
Bug 369403
Opened 19 years ago
Closed 15 years ago
GBK aliases should be aligned with IANA registration
Categories
(Core :: Internationalization, defect)
Core
Internationalization
Tracking
()
RESOLVED
FIXED
People
(Reporter: glandium, Assigned: smontagu)
References
Details
(Whiteboard: [strings])
Attachments
(4 files)
|
866 bytes,
patch
|
smontagu
:
review-
|
Details | Diff | Splinter Review |
|
13.58 KB,
patch
|
emk
:
review+
Gavin
:
approval2.0-
|
Details | Diff | Splinter Review |
|
14.30 KB,
patch
|
smontagu
:
review+
benjamin
:
approval2.0-
|
Details | Diff | Splinter Review |
|
13.44 KB,
patch
|
Details | Diff | Splinter Review |
charsetalias.properties defines gbk and derivatives as aliases to x-gbk and euc-tw and derivatives as aliases to x-euc-tw.
x-gbk and x-euc-tw don't exist with native uconv. They are respectively gbk and euc-tw.
I have a patch to charsetalias.properties, that I am attaching, that addresses the alias issue, I think the non-native uconv should be updated so that it provides converters for gbk and euc-tw instead of x-gbk and x-euc-tw.
Attachment #254072 -
Flags: review?(smontagu)
| Assignee | ||
Comment 1•19 years ago
|
||
Our policy is that charsets not defined in the IANA charset registry http://www.iana.org/assignments/character-sets have the x- prefix. I see that gbk is defined there, but euc-tw is not.
There are several other charset names with the x- prefix in non-native uconv and without it in native uconv, e.g. johab, mac-cyrillic. Maybe there could be a more general solution?
| Reporter | ||
Comment 3•18 years ago
|
||
Yes, it still is, but the fix is not clear. The patch only outlines the problem.
| Assignee | ||
Comment 4•16 years ago
|
||
Attachment #254072 -
Flags: review?(smontagu) → review-
| Reporter | ||
Comment 5•16 years ago
|
||
I don't even use native uconv anymore
Assignee: mh+mozilla → smontagu
Comment 6•15 years ago
|
||
I found this bug is affected lots of Chinese users as x-gbk causes many MTAs are unable to decode it. It would be better we just use gbk which became an IANA character set in 2002: <http://www.iana.org/assignments/charset-reg/GBK>
| Assignee | ||
Comment 7•15 years ago
|
||
You're right of course. I noted that gbk was registered in IANA back in comment 1, and I should have thought through the implications and at least pushed that change in.
Axel, can we take changing x-gbk to gbk in FF 4 from the l10n point of view? There is an x-gbk.title key in dom/locales/en-US/chrome/charsetTitles.properties that will need to be renamed, and the encoding menus in toolkit/locales/en-US/chrome/global/intl.properties will also need to change.
| Assignee | ||
Comment 8•15 years ago
|
||
Really cc-ing l10n@mozilla.com this time -- Axel please see comment 7.
Comment 9•15 years ago
|
||
Not sure what the impact is, what happens as long as a locale didn't update
intl.charsetmenu.browser.more3=GB2312, x-gbk, gb18030, HZ-GB-2312, ISO-2022-CN,
Big5, Big5-HKSCS, x-euc-tw, EUC-JP, ISO-2022-JP, Shift_JIS, EUC-KR, x-windows-94
9, x-johab, ISO-2022-KR
?
| Assignee | ||
Comment 10•15 years ago
|
||
I'm fairly sure that then the menu wouldn't work, because we don't do alias resolution on charset names hard-coded in the UI.
Comment 11•15 years ago
|
||
I guess now is as bad a time as any, assuming that the actual patch is low-risk.
It's gonna require just tons of massaging.
... which makes me wonder, could we do something more intelligent about those menus? It is some pretty awkward code, I wonder how many localizers actually understand what they can do here, and why.
| Assignee | ||
Comment 12•15 years ago
|
||
Good questions. I don't have an answer to the "why" part myself. Do any localizers change the menus in practice?
OS: Linux → All
Hardware: x86 → All
Version: 1.8 Branch → Trunk
| Assignee | ||
Comment 13•15 years ago
|
||
Attachment #481508 -
Flags: review?(VYV03354)
Comment 14•15 years ago
|
||
Didn't do an extensive analysis, but ad-hoc I only found intl.charsetmenu.browser.static to be customized.
Comment 15•15 years ago
|
||
Comment on attachment 481508 [details] [diff] [review]
Patch
Should we move intl.charsetmenu.* (except intl.charsetmenu.static) to non-localizable pref as I'd done in bug 470209?
Attachment #481508 -
Flags: review?(VYV03354) → review+
| Assignee | ||
Comment 16•15 years ago
|
||
I discovered some broken customizations, i.e. using a localized form of the name instead of the canonical name
http://mxr.mozilla.org/l10n-central/source/hr/toolkit/chrome/global/intl.properties
http://mxr.mozilla.org/l10n-central/source/ne-NP/toolkit/chrome/global/intl.properties
Unfortunately mxr doesn't show complete lines, so I would need to check out a complete l10n tree for a full analysis
| Assignee | ||
Comment 17•15 years ago
|
||
Comment on attachment 481508 [details] [diff] [review]
Patch
Asking approval 2.0. This is very low-risk: the only user-facing change is that we mark gbk output as "gbk" instead of "x-gbk". (For input we recognize both forms before and after this patch).
Per comment 6, outputting "x-gbk" causes problems for many Chinese users.
Attachment #481508 -
Flags: approval2.0?
Comment 18•15 years ago
|
||
beltzner/gavin, can one of you make a quick call on this one, it involves string changes so needs to land for b7 if we take it at all.
Whiteboard: [strings]
Comment 19•15 years ago
|
||
Comment on attachment 481508 [details] [diff] [review]
Patch
This missed beta 7; I think the l10n complications described in comment 11 preclude this from landing for 2.0. Seems like we should get a bug on file to have these menus depend on localizable files less...
Attachment #481508 -
Flags: approval2.0? → approval2.0-
| Assignee | ||
Comment 20•15 years ago
|
||
Filed bug 610638 to make the menus non-localizable
| Assignee | ||
Comment 21•15 years ago
|
||
Transferring r and rerequesting approval. This patch is identical to the previous, except that it patches all.js (after the changes from bug 610638) instead of intl.properties, and so has no l10n impact.
Attachment #489179 -
Flags: review+
| Assignee | ||
Comment 22•15 years ago
|
||
Comment on attachment 489179 [details] [diff] [review]
Patch merged to bug 369403
Really requesting approval
Attachment #489179 -
Flags: approval2.0?
Comment 23•15 years ago
|
||
It's past string-freeze now.
Attachment #489179 -
Flags: approval2.0? → approval2.0-
Comment 24•15 years ago
|
||
What's native uconv? It seems a bit scary to outsource character decoding considering how Web compat sensitive it is.
Comment 25•15 years ago
|
||
(In reply to comment #24)
Native uconv is no longer used (comment #5), and it doesn't even compile at the moment (bug 623864).
The purpose of this bug is changing the alias to align it with IANA registration and making more interoperable with other MTAs (comment #6). Updating title to reflect the current status.
Summary: GBK and EUC-TW aliases problem with native uconv → GBK aliases should be aligned with IANA registration
| Reporter | ||
Comment 26•15 years ago
|
||
(In reply to comment #25)
> (In reply to comment #24)
> Native uconv is no longer used (comment #5)
Note that I wasn't the only user, the wince port was using that code.
Updated•15 years ago
|
Keywords: checkin-needed
Comment 27•15 years ago
|
||
Please apply it over the patch of bug 604317.
| Assignee | ||
Comment 28•15 years ago
|
||
Status: NEW → RESOLVED
Closed: 15 years ago
Flags: in-testsuite+
Resolution: --- → FIXED
Updated•15 years ago
|
Keywords: checkin-needed
You need to log in
before you can comment on or make changes to this bug.
Description
•