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 UTF-8 decoding of lazy bytestrings #333

Merged
merged 1 commit into from
May 22, 2021
Merged

Commits on May 22, 2021

  1. Fix UTF-8 decoding of lazy bytestrings

    At the beginning of a new chunk we may be trying to complete a UTF-8
    sequence started in the previous chunk (contained in the `undecode0`
    buffer). If it turns out to be invalid, we must apply the `onErr`
    handler to every character in that buffer.
    
    When we reach the end of the chunk, we must also be more careful
    about when to keep the previous buffer: a UTF-8 sequence (up to 4 bytes)
    can span more than two chunks, when those chunks are very short
    (of length 0, 1, or 2).
    Lysxia committed May 22, 2021
    Configuration menu
    Copy the full SHA
    c9874d3 View commit details
    Browse the repository at this point in the history