WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
NEW
180747
[GTK][WPE] Support ISO-8859-16
https://bugs.webkit.org/show_bug.cgi?id=180747
Summary
[GTK][WPE] Support ISO-8859-16
Ms2ger (he/him; ⌚ UTC+1/+2)
Reported
2017-12-13 05:41:47 PST
new TextDecoder("iso-8859-16", {fatal: true}).decode(new Uint8Array([164])) is supposed to return a string containing the Euro sign; it does not. This happens because TextCodecICU::createICUConverter() fails to create the converter. (This is the "error creating ICU encoder even though encoding was in table" error case in TextCodecICU::decode().) Before
r225618
, it returned the empty string; since
r225618
, it throws a TypeError (in the decode() call, not in the constructor). imported/w3c/web-platform-tests/encoding/textdecoder-fatal-single-byte.html checks that no exception is thrown, but not that the result is correct.
Attachments
Add attachment
proposed patch, testcase, etc.
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