WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED CONFIGURATION CHANGED
73551
Support charset ISO_8859-X as an alias to ISO-8859-X
https://bugs.webkit.org/show_bug.cgi?id=73551
Summary
Support charset ISO_8859-X as an alias to ISO-8859-X
Ismail Donmez
Reported
2011-12-01 04:22:44 PST
I came to know a public website which uses ISO_8859-9 as charset. Looking at
http://www.iana.org/assignments/character-sets
these ISO_8859-X variants are just an alias for ISO-8859-X. I will attach a patch to support the ones with underscore as an alias the original one.
Attachments
Patch implementing the proposed alias additions.
(2.05 KB, patch)
2011-12-01 04:24 PST
,
Ismail Donmez
no flags
Details
Formatted Diff
Diff
View All
Add attachment
proposed patch, testcase, etc.
Ismail Donmez
Comment 1
2011-12-01 04:24:00 PST
Created
attachment 117397
[details]
Patch implementing the proposed alias additions.
Alexey Proskuryakov
Comment 2
2011-12-01 11:57:07 PST
Do these work in both Firefox and IE? You did not flag the patch for review, which I presume means that you plan to add tests.
Alexey Proskuryakov
Comment 3
2011-12-01 11:58:07 PST
(the tests would go to fast/encoding/char-decoding.html)
Ismail Donmez
Comment 4
2011-12-01 12:08:01 PST
(In reply to
comment #2
)
> Do these work in both Firefox and IE?
Works with Firefox as they have these aliases (checked xulrunner code & tested Firefox myself). IE, I honestly don't know I'll test it.
> You did not flag the patch for review, which I presume means that you plan to add tests.
I forgot to flag it for review but I would like to add a testcase but never wrote one, what would be a good way to test this, any tips? Thanks!
Alexey Proskuryakov
Comment 5
2011-12-01 14:38:06 PST
The test that I mentioned checks many encodings, you should just add these to it.
Ismail Donmez
Comment 6
2011-12-02 05:44:42 PST
(In reply to
comment #5
)
> The test that I mentioned checks many encodings, you should just add these to it.
Those checks look limited shall I add tests for each ISO_8859-X encoding?
Alexey Proskuryakov
Comment 7
2011-12-02 08:45:38 PST
Yes. Checking one non-ASCII character for each would be sufficient.
Anne van Kesteren
Comment 8
2023-08-23 08:07:41 PDT
We should be aligned with
https://encoding.spec.whatwg.org
now which includes this mapping. Though it doesn't include all mappings suggested by this patch, so this is a partial WONTFIX as well.
Note
You need to
log in
before you can comment on or make changes to this bug.
Top of Page
Format For Printing
XML
Clone This Bug