Closed
Bug 1068514
Opened 10 years ago
Closed 10 years ago
Remove abandoned gfx-only Japanese and Traditional Chinese encodings
Categories
(Core :: Internationalization, defect)
Core
Internationalization
Tracking
()
RESOLVED
FIXED
mozilla35
People
(Reporter: hsivonen, Assigned: hsivonen)
Details
Attachments
(2 files)
16.26 KB,
patch
|
emk
:
review+
|
Details | Diff | Splinter Review |
65.20 KB,
patch
|
emk
:
review+
|
Details | Diff | Splinter Review |
nsUnicodeToHKSCS and nsUnicodeToJISx0201 are unused encode-only encodings. They are most likely leftovers from the pre-FreeType X11 gfx days. Let's remove them as dead code.
Assignee | ||
Comment 1•10 years ago
|
||
https://tbpl.mozilla.org/?tree=Try&rev=918adb454556
Assignee | ||
Comment 2•10 years ago
|
||
Oh, and the patch removes some dead-code OS/2-specific data tables for the OS/2 variant of Shift_JIS.
Assignee | ||
Updated•10 years ago
|
Attachment #8490613 -
Flags: review?(VYV03354)
Comment 3•10 years ago
|
||
Comment on attachment 8490613 [details] [diff] [review] Remove dead code Review of attachment 8490613 [details] [diff] [review]: ----------------------------------------------------------------- ::: intl/uconv/ucvja/japanese.map @@ -50,5 @@ > static const uint16_t * const gCP932Index[] = { > gCP932IndexShiftJis, gCP932IndexJis0208 > }; > > -static const uint16_t gIBM943IndexShiftJis[] = { Please modify intl/uconv/tools/jamap.pl and regenerate japanese.map instead of removing the table it by hand.
Assignee | ||
Comment 4•10 years ago
|
||
(In reply to Masatoshi Kimura [:emk] from comment #3) > Please modify intl/uconv/tools/jamap.pl and regenerate japanese.map instead > of removing the table it by hand. I edited jamap.pl to remove the IBM parts. Then I obtained the data files from unicode.org and ran jamap.pl. japanese.map changed more than I expected (the diff is to the manual edit from the previous patch). What's going on?
Attachment #8491282 -
Flags: review?(VYV03354)
Comment 5•10 years ago
|
||
(In reply to Henri Sivonen (:hsivonen) from comment #4) > Created attachment 8491282 [details] [diff] [review] > change jamap.pl and regenerate japanese.map > > (In reply to Masatoshi Kimura [:emk] from comment #3) > > Please modify intl/uconv/tools/jamap.pl and regenerate japanese.map instead > > of removing the table it by hand. > > I edited jamap.pl to remove the IBM parts. Then I obtained the data files > from unicode.org and ran jamap.pl. japanese.map changed more than I expected > (the diff is to the manual edit from the previous patch). What's going on? It looks like the change is expected (though I'll double-check it later). The index 8648 to 9211 was used for the IBM943-specific mapping data. Now IBM943 was killed, so the extra data was removed from the table (it's the reason I asked you to regenerate the table). gJIS0212Index has index values to the second table, so the most index values are shifted.
Updated•10 years ago
|
Attachment #8490613 -
Flags: review?(VYV03354) → review+
Comment 6•10 years ago
|
||
Comment on attachment 8491282 [details] [diff] [review] change jamap.pl and regenerate japanese.map I ran the patched jamap.pl locally and got exactly the same file.
Attachment #8491282 -
Flags: review?(VYV03354) → review+
Assignee | ||
Comment 7•10 years ago
|
||
Thanks. Landed folded: https://hg.mozilla.org/integration/mozilla-inbound/rev/52b0ec2f0522
https://hg.mozilla.org/mozilla-central/rev/52b0ec2f0522
Status: ASSIGNED → RESOLVED
Closed: 10 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla35
You need to log in
before you can comment on or make changes to this bug.
Description
•