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

util: escape lone surrogate code points using .inspect() #41001

Merged

Commits on Nov 28, 2021

  1. util: escape lone surrogate code points using .inspect()

    Unpaired surrogate code points have no representation in UTF8.
    Therefore, such code points are just "random" output that is
    unreadable. Instead, escape the code points similar to C0 and C1
    control characters.
    
    Refs: https://unicodebook.readthedocs.io/unicode_encodings.html#utf-16-surrogate-pairs
    
    Signed-off-by: Ruben Bridgewater <ruben@bridgewater.de>
    BridgeAR committed Nov 28, 2021
    Configuration menu
    Copy the full SHA
    bcbcfb0 View commit details
    Browse the repository at this point in the history