logging functions handle unicode poorly #2154
Labels
A-runtime
Area: std's runtime and "pre-main" init for handling backtraces, unwinds, stack overflows
A-Unicode
Area: Unicode
C-enhancement
Category: An issue proposing an enhancement or a PR with one.
If I log a string with unicode I would like to see the unicode not some wacky utf-8 multi-byte escape sequence. Here is a test case:
// Run with
export RUST_LOG=test && ./test
import io;
fn is_print(ch: char) -> bool
{
ret ch >= '_' && ch <= '~';
}
fn munge_chars(chars: [char]) -> str
{
let bullet = '\u2022';
}
fn main()
{
let s = munge_chars(['h', 'e', 'l', 'l', 'o', '\u0003']);
}
The text was updated successfully, but these errors were encountered: