Files
rust/src/libcoretest
Tobias Bucher e7d16580f5 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 #34318.

[PEP 3138]: https://www.python.org/dev/peps/pep-3138/
2016-07-23 00:18:44 +02:00
..
2016-03-12 12:31:13 -08:00
2016-06-29 16:08:32 -07:00
2016-01-14 23:02:32 -08:00
2015-08-17 19:35:52 -07:00
2015-10-16 21:15:23 +02:00
2016-06-14 15:51:49 +02:00
2015-03-26 12:10:22 -07:00
2015-03-26 12:10:22 -07:00
2016-03-11 08:42:56 +05:30