-
Notifications
You must be signed in to change notification settings - Fork 16
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
fix: Issue #65 #112
base: devel
Are you sure you want to change the base?
fix: Issue #65 #112
Conversation
Illustration of current functionality in this PR:
Invalid characters are displayed differently depending on machine support:
Why do we care about which characters we can distinguish? These methods support conversions like Another avenue to consider is to instead use something like
We could use There's a bit of a rabbit hole we could fall into with this fix. Ideally, we just fix the |
THIS IS A WIP
Early stage work-in-progress solution for discussion in #65.
Goals:
BString
object contains a null byte (as.raw(0)
)BString
andraw/integer
vectorsThe issue in (1) is that a
BString
containing a null byte throws an error whenever R tries to display the position(s) containins the null byte. This leads users to think that the object itself is corrupted, when in fact it's purely an error with R attempting to display it on the console.as.integer()
and other methods work properly on these objects.This issue would be more obvious if more people used
BString
objects with values in the complete 0:255 range, but building aBString
from bytes is currently very difficult. Helper functions to createBString
s from raw vectors would be preferable.This PR will be blocked from merging until it's actually finalized; currently displaying to organize thoughts and reprexes.