Skip to content

Commit

Permalink
librustc: back::link::sanitize support esacpe_utf8
Browse files Browse the repository at this point in the history
  • Loading branch information
yichoi committed Jul 1, 2013
1 parent d5c5ce3 commit d387e78
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/librustc/back/link.rs
Expand Up @@ -660,9 +660,9 @@ pub fn sanitize(s: &str) -> ~str {
| '_' => result.push_char(c),

_ => {
if c > 'z' && char::is_XID_continue(c) {
result.push_char(c);
}
let tstr = char::escape_unicode(c);
result.push_char('$');
result.push_str(tstr.slice_from(1));
}
}
}
Expand Down

0 comments on commit d387e78

Please sign in to comment.