Skip to content

Commit a8e2a7a

Browse files
committed
Map 0xCA to U+05BA in windows-1255 per whatwg/encoding#73.
1 parent 33beb57 commit a8e2a7a

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

src/data.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -574,7 +574,7 @@ pub const WINDOWS_1255_DATA: &'static [u16; 128] = &[0x20AC, 0x0081, 0x201A, 0x0
574574
0x00B7, 0x00B8, 0x00B9, 0x00F7, 0x00BB,
575575
0x00BC, 0x00BD, 0x00BE, 0x00BF, 0x05B0,
576576
0x05B1, 0x05B2, 0x05B3, 0x05B4, 0x05B5,
577-
0x05B6, 0x05B7, 0x05B8, 0x05B9, 0x0000,
577+
0x05B6, 0x05B7, 0x05B8, 0x05B9, 0x05BA,
578578
0x05BB, 0x05BC, 0x05BD, 0x05BE, 0x05BF,
579579
0x05C0, 0x05C1, 0x05C2, 0x05C3, 0x05F0,
580580
0x05F1, 0x05F2, 0x05F3, 0x05F4, 0x0000,

src/single_byte.rs

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -124,6 +124,12 @@ mod tests {
124124
use super::super::testing::*;
125125
use super::super::*;
126126

127+
#[test]
128+
fn test_windows_1255_ca() {
129+
decode(WINDOWS_1255, b"\xCA", "\u{05BA}");
130+
encode(WINDOWS_1255, "\u{05BA}", b"\xCA");
131+
}
132+
127133
pub const HIGH_BYTES: &'static [u8; 128] = &[0x80, 0x81, 0x82, 0x83, 0x84, 0x85, 0x86, 0x87,
128134
0x88, 0x89, 0x8A, 0x8B, 0x8C, 0x8D, 0x8E, 0x8F,
129135
0x90, 0x91, 0x92, 0x93, 0x94, 0x95, 0x96, 0x97,

0 commit comments

Comments
 (0)