Skip to content

Commit 01ef0fd

Browse files
committed
---
yaml --- r: 104323 b: refs/heads/try c: 35b1b62 h: refs/heads/master i: 104321: 01bc614 104319: a6ddd9f v: v3
1 parent ca9a521 commit 01ef0fd

File tree

2 files changed

+6
-3
lines changed

2 files changed

+6
-3
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
refs/heads/master: 62f1d68439dcfd509eaca29887afa97f22938373
33
refs/heads/snap-stage1: e33de59e47c5076a89eadeb38f4934f58a3618a6
44
refs/heads/snap-stage3: 6e7f170fedd3c526a643c0b2d13863acd982be02
5-
refs/heads/try: a96cea4f5a713eb357bde3d395c5453058be88c5
5+
refs/heads/try: 35b1b62ddfc31c2e52b65c2f908c0fcbc6465de5
66
refs/tags/release-0.1: 1f5c5126e96c79d22cb7862f75304136e204f105
77
refs/heads/ndm: f3868061cd7988080c30d6d5bf352a5a5fe2460b
88
refs/heads/try2: 147ecfdd8221e4a4d4e090486829a06da1e0ca3c

branches/try/src/libstd/str.rs

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -881,7 +881,7 @@ impl<'a> Iterator<UTF16Item> for UTF16Items<'a> {
881881
}
882882

883883
// all ok, so lets decode it.
884-
let c = (u - 0xD800) as u32 << 10 | (u2 - 0xDC00) as u32 | 0x1_0000;
884+
let c = ((u - 0xD800) as u32 << 10 | (u2 - 0xDC00) as u32) + 0x1_0000;
885885
Some(ScalarValue(unsafe {cast::transmute(c)}))
886886
}
887887
}
@@ -3824,7 +3824,10 @@ mod tests {
38243824
0xdc9c_u16, 0xd801_u16, 0xdc92_u16, 0xd801_u16,
38253825
0xdc96_u16, 0xd801_u16, 0xdc86_u16, 0x0020_u16,
38263826
0xd801_u16, 0xdc95_u16, 0xd801_u16, 0xdc86_u16,
3827-
0x000a_u16 ]) ];
3827+
0x000a_u16 ]),
3828+
// Issue #12318, even-numbered non-BMP planes
3829+
(~"\U00020000",
3830+
~[0xD840, 0xDC00])];
38283831
38293832
for p in pairs.iter() {
38303833
let (s, u) = (*p).clone();

0 commit comments

Comments
 (0)