Join GitHub today
GitHub is home to over 31 million developers working together to host and review code, manage projects, and build software together.
Sign upInconsistent escaping of special characters between &str and &OsStr with Debug #27211
Comments
alexcrichton
added
I-nominated
T-libs
labels
Jul 22, 2015
tbu-
added a commit
to tbu-/rust
that referenced
this issue
Jul 22, 2015
tbu-
referenced this issue
Jul 22, 2015
Closed
Escape OsStr just like normal str, in fact delegate the escaping to str #27223
diaphore
referenced this issue
Jul 27, 2015
Merged
Fix escaping of chars in Debug for Wtf8 backed OsStr #27319
bors
closed this
in
aa89504
Jul 28, 2015
Havvy
added a commit
to GuillaumeGomez/rust
that referenced
this issue
Jul 28, 2015
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
diaphore commentedJul 22, 2015
Formatting a string containing special characters with
Debugusually prints them escaped i.e."\r\n\t".This snippet runs as expected in the playground. However on Windows, using both
rustc 1.3.0-nightly (be23d44a5 2015-07-20)andrustc 1.1.0 (35ceea399 2015-06-19), theOsStris printed unescaped :From what I can gather,
impl fmt::Debug for Wtf8only concerns itself with faulty surrogates and completely ignores special characters.