Skip to content

Commit a9a72b7

Browse files
committed
---
yaml --- r: 68565 b: refs/heads/auto c: b44953b h: refs/heads/master i: 68563: c27fbc1 v: v3
1 parent 879ea99 commit a9a72b7

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,6 @@ refs/heads/try3: 9387340aab40a73e8424c48fd42f0c521a4875c0
1414
refs/tags/release-0.3.1: 495bae036dfe5ec6ceafd3312b4dca48741e845b
1515
refs/tags/release-0.4: e828ea2080499553b97dfe33b3f4d472b4562ad7
1616
refs/tags/release-0.5: 7e3bcfbf21278251ee936ad53e92e9b719702d73
17-
refs/heads/auto: 0bd67f68913288af7cb26cca796842e9c8514521
17+
refs/heads/auto: b44953b8a3dcf97120e0cc4ed12ce115ce90e83e
1818
refs/heads/servo: af82457af293e2a842ba6b7759b70288da276167
1919
refs/tags/release-0.6: b4ebcfa1812664df5e142f0134a5faea3918544c

branches/auto/src/librustc/back/link.rs

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -660,9 +660,10 @@ pub fn sanitize(s: &str) -> ~str {
660660
| '_' => result.push_char(c),
661661

662662
_ => {
663-
if c > 'z' && char::is_XID_continue(c) {
664-
result.push_char(c);
665-
}
663+
let mut tstr = ~"";
664+
do char::escape_unicode(c) |c| { tstr.push_char(c); }
665+
result.push_char('$');
666+
result.push_str(tstr.slice_from(1));
666667
}
667668
}
668669
}

0 commit comments

Comments
 (0)