Coder Social home page Coder Social logo

GBK encoding/decoding support about encoding HOT 13 OPEN

whatwg avatar whatwg commented on August 12, 2024
GBK encoding/decoding support

from encoding.

Comments (13)

annevk avatar annevk commented on August 12, 2024

The href failures are somewhat expected. Firefox doesn't use the same strategy as <form> there yet.

We should probably investigate the smaller number of failures from Chrome/Safari/Edge in encode/decode.

from encoding.

r12a avatar r12a commented on August 12, 2024

List of bugs raised:

from encoding.

jungshik avatar jungshik commented on August 12, 2024

Chromium's failure is expected. See http://crbug.com/339862 and http://crbug.com/430823

from encoding.

annevk avatar annevk commented on August 12, 2024

@r12a this is the first in a series of issues you raised about tests. I'm not sure how I can address these from a standards-perspective. What would it take to get them closed?

from encoding.

r12a avatar r12a commented on August 12, 2024

yeah, these are a little unusual. I'm not sure (other than of course all implementations passing all tests).

We raised them here so that (a) they would be noticed, and so we had something to point to where people could hold a discussion if they wanted, although actually much of the discussion is taking place in the browser bugs raised, but also (b) so that we had a central location pointing to and perhaps from time to time summarising the implementation work/issues, so that people are notified of movement without having to subscribe to all the many bugs raised. (For example, i've been meaning to point to https://bugs.webkit.org/show_bug.cgi?id=159891, which seems to need suggestions on how to move forward.)

if you feel you want to close them we could do so, but perhaps we could add a comment saying that people can still contribute to the discussion while closed(?)

from encoding.

annevk avatar annevk commented on August 12, 2024

I guess I'll leave them all open for now then. Not in a rush.

from encoding.

hsivonen avatar hsivonen commented on August 12, 2024

AFAICT, the gbk tests differ from the spec for one code point to byte pair and vice versa mapping:
The tests want A8 BC to decode to U+E7C7 and want U+E7C7 to encode to A8 BC. However, per spec, A8 BC maps to U+1E3F.

from encoding.

hsivonen avatar hsivonen commented on August 12, 2024

Additionally, the tests seem to disargee with the spec on the handling of ASCII bytes as part of a malformed sequence when decoding:
Fail step 2: 82 30 C3 assert_equals: expected "�" but got "�0�"
Fail step 5.7: 82 FF C3 33 assert_equals: expected "��" but got "��3"
Fail step 9: FF 30 C3 33 assert_equals: expected "�0�" but got "�0�3"

from encoding.

vyv03354 avatar vyv03354 commented on August 12, 2024

Firefox Nightly 56 improved the encoder, but it still has one test failure. Apparently the decoder has no improvement.

from encoding.

r12a avatar r12a commented on August 12, 2024

Today and yesterday i updated the results at https://www.w3.org/International/tests/repo/results/encoding-dbl-byte.en#gbk for Firefox, FNightly, Chrome, and Canary. The latest summary is:

screen shot 2017-06-15 at 08 43 58

(There are columns for nightlies only where the results differ from the released versions.)

from encoding.

r12a avatar r12a commented on August 12, 2024

Firefox's one failure is this:

U+E7C7  %A8%BC assert_equals: expected "%A8%BC" but got "%26%23%35%39%33%33%35%3B"

could be an issue with the test(?)

from encoding.

hsivonen avatar hsivonen commented on August 12, 2024

Firefox's one failure is this:

U+E7C7  %A8%BC assert_equals: expected "%A8%BC" but got "%26%23%35%39%33%33%35%3B"

could be an issue with the test(?)

That's indeed a test bug. See upthread.

from encoding.

annevk avatar annevk commented on August 12, 2024

Upstreaming these tests never completed. There's web-platform-tests/wpt#20360 but it needs work.

from encoding.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.