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

Escape fewer Unicode codepoints in Debug impl of str #34485

Merged
merged 5 commits into from
Jul 28, 2016

Commits on Jul 22, 2016

  1. Escape fewer Unicode codepoints in Debug impl of str

    Use the same procedure as Python to determine whether a character is
    printable, described in [PEP 3138]. In particular, this means that the
    following character classes are escaped:
    
    - Cc (Other, Control)
    - Cf (Other, Format)
    - Cs (Other, Surrogate), even though they can't appear in Rust strings
    - Co (Other, Private Use)
    - Cn (Other, Not Assigned)
    - Zl (Separator, Line)
    - Zp (Separator, Paragraph)
    - Zs (Separator, Space), except for the ASCII space `' '` (`0x20`)
    
    This allows for user-friendly inspection of strings that are not
    English (e.g. compare `"\u{e9}\u{e8}\u{ea}"` to `"éèê"`).
    
    Fixes rust-lang#34318.
    
    [PEP 3138]: https://www.python.org/dev/peps/pep-3138/
    tbu- committed Jul 22, 2016
    Configuration menu
    Copy the full SHA
    e7d1658 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    34f766e View commit details
    Browse the repository at this point in the history
  3. Fix run-pass/ifmt test

    tbu- committed Jul 22, 2016
    Configuration menu
    Copy the full SHA
    0685900 View commit details
    Browse the repository at this point in the history

Commits on Jul 26, 2016

  1. Configuration menu
    Copy the full SHA
    68efea0 View commit details
    Browse the repository at this point in the history

Commits on Jul 28, 2016

  1. Configuration menu
    Copy the full SHA
    3d09b4a View commit details
    Browse the repository at this point in the history