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 handling of surrogates on decoding #550

Merged
merged 1 commit into from Jun 16, 2022

Commits on Jun 9, 2022

  1. Fix handling of surrogates on decoding

    This implements surrogate handling on decoding as it is in the standard library. Lone escaped surrogates and any raw surrogates in the input result in surrogates in the output, and escaped surrogate pairs get decoded into non-BMP characters. Note that raw surrogate pairs get treated differently on platforms/compilers with 16-bit `wchar_t`, e.g. Microsoft Windows.
    JustAnotherArchivist committed Jun 9, 2022
    Copy the full SHA
    e0e5db9 View commit details
    Browse the repository at this point in the history