Bug 180747

Summary: [GTK][WPE] Support ISO-8859-16
Product: WebKit Reporter: Ms2ger (he/him; ⌚ UTC+1/+2) <Ms2ger>
Component: TextAssignee: Nobody <webkit-unassigned>
Status: NEW    
Severity: Normal CC: mmaxfield
Priority: P2    
Version: WebKit Nightly Build   
Hardware: Unspecified   
OS: Unspecified   

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
Note You need to log in before you can comment on or make changes to this bug.