Fix backtrace demangling

Closes #20209
This commit is contained in:
Steven Fackler 2014-12-24 21:40:56 -05:00
parent 7e11b22713
commit e8b151b791
1 changed files with 4 additions and 4 deletions

View File

@ -115,10 +115,10 @@ pub fn demangle(writer: &mut Writer, s: &str) -> IoResult<()> {
// in theory we can demangle any Unicode code point, but
// for simplicity we just catch the common ones.
"$x20" => " ",
"$x27" => "'",
"$x5b" => "[",
"$x5d" => "]"
"$u{20}" => " ",
"$u{27}" => "'",
"$u{5b}" => "[",
"$u{5d}" => "]"
)
} else {
let idx = match rest.find('$') {