Skip to content
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 io.write_escaped_rune not writing full value #4610

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

blob1807
Copy link
Contributor

Values 0 to 6, 14 & 15 should be encoded as \x00 to \x06, \x0E & \x0F but are instead just \x0.
Adding a fallthrough into the switch to write the convert string fixes the issue.

Fixes: #4609

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

io.write_encoded_rune only returns \x0 for 0 to 6, 14 & 15
1 participant