Skip to content

Commit

Permalink
Fix backtrace demangling
Browse files Browse the repository at this point in the history
Closes #20209
  • Loading branch information
sfackler committed Dec 25, 2014
1 parent 7e11b22 commit e8b151b
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/libstd/sys/common/backtrace.rs
Expand Up @@ -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('$') {
Expand Down

0 comments on commit e8b151b

Please sign in to comment.