-
Notifications
You must be signed in to change notification settings - Fork 14
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Reuse algorithms from the Encoding Standard #3
Comments
What's the benefit of an Encoding Form? I would accept a bug report on this, although it's a bit unclear if we want this. Would Servo put wtf-8 in the same library or its own little legacy space? |
Encoding Form: JS and Windows keep code units in memory as In the same library as what? Anyway, I wrote this in response to “why is the WTF-8 spec not based on the Encoding standard?”, but it’s less pressing now (as of c6a271d) that I’ve simplified WTF-8 decoding to assume well-formedness, and not define it from arbitrary bytes. (If you’re decoding WTF-8 from arbitrary bytes such as from the network, you’re probably doing it wrong.) If you think de-duplicating is not valuable enough to bother, I’ll just close this. |
The only thing I'd think is valuable is to link to the Encoding Standard for utf-8/utf-16, scalar value/code point. So that everyone is aware we follow that document for those terms. |
I would be okay with investigating de-duplication as well. |
The decoding and encoding algorithms are very similar to that of https://encoding.spec.whatwg.org/ . It would be nice to be able to reuse (part of) them instead of duplicating the definitions. However this would require Encoding to provide some hooks. @annevk, are you interested in doing this? What’s needed includes:
The text was updated successfully, but these errors were encountered: