about summary refs log tree commit diff
path: root/src/libstd/sys/unix/time.rs
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2017-12-18 02:54:11 +0000
committerbors <bors@rust-lang.org>2017-12-18 02:54:11 +0000
commita3a7203e2c9ed30a501da86f3fa1f9efe707ac94 (patch)
tree862a6ca6053469cdac26ec03a14c02076945fd5a /src/libstd/sys/unix/time.rs
parentdc39c31699a83313edf2ac096d0bf3cef871b705 (diff)
parent8fac7d95bc2429ff2156bf1afcf8972f92cd6afd (diff)
downloadrust-a3a7203e2c9ed30a501da86f3fa1f9efe707ac94.tar.gz
rust-a3a7203e2c9ed30a501da86f3fa1f9efe707ac94.zip
Auto merge of #46798 - Diggsey:debug-osstr, r=dtolnay
Add lossless debug implementation for unix OsStrs

Fixes #22766

Invalid utf8 byte sequences are replaced with `\xFF` style escape codes, while valid utf8 goes through the normal `Debug` implementation.

This is necessarily different from the windows Debug implementation, which uses `\u{xxxx}` style escape sequences for unpaired surrogates, but both implementations are consistent in that they are both lossless, and display invalid sequences in the way most similar to existing language syntax.

r? @dtolnay
Diffstat (limited to 'src/libstd/sys/unix/time.rs')
0 files changed, 0 insertions, 0 deletions