-
Notifications
You must be signed in to change notification settings - Fork 1
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
Expect separator after null byte during encoding (v0.2) #6
Comments
Maybe this should be changed into a table just so both encode and decode can be validated? Null byte was something I saw was ignored in a lot of implementations so it's possible some have a compliant encode but not a compliant decode. |
Here's a partial table:
Source| Implementation | Encode compliant | Decode compliant |
|---|---|---|
| bottom-bash | <ul><li>- [ ] </li></ul> | <ul><li>- [ ] </li></ul> |
| bottom-c | <ul><li>- [ ] </li></ul> | <ul><li>- [ ] </li></ul> | Note there are zero width spaces |
It might also be worth adding the version tested Without a standard testing suite it's hard to get automated testing on all of them, so it could also be possible that an implementation changes from being complaint to noncompliant, so logging versions could help with being clear about what was tested (although tracking changes after an implementation has become completely compliant is probably out of scope for this issue) |
I've added the table. Decode is assumed not compliant until I review it or someone reviews it for me.
Out of the scope of this issue imo. |
FYI, null byte encoding works fine for bottom-hs, which has always encoded separators after null bytes. For evidence:
You could build one of these pretty easily by adapting the bottom-hs test suite to accept adapters for other CLIs. It uses both the bottom-rs tests as well as randomized property-based testing via QuickCheck. |
Thanks! I've updated the table to match |
Currently the spec does not have the separator occuring after null bytes encoded to bottom. Below is a list of implementations that must be updated to follow this encoding change. Decoding should not need to be changed, as long as it already followed the spec.
Also see: #2, bottom-software-foundation/bottom-rs#8, bottom-software-foundation/bottom-go#1
The text was updated successfully, but these errors were encountered: