summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorstuebinm2024-01-23 03:55:24 +0100
committerstuebinm2024-01-23 03:55:24 +0100
commitea83037071f70694d0138fbd58ab74fa3135d828 (patch)
tree25c6b062784c541d587a78b6e4662bd9da5412be /lib
parentbbad68da2a4a67a2d3d04cd5dc48d848a210d16d (diff)
asdfdlldlfldlfshkhajdlleljijlehsfhhstssslehhhkdHEADmain
Diffstat (limited to '')
-rw-r--r--lib/src/lib.rs6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/src/lib.rs b/lib/src/lib.rs
index b561f13..4f6cad5 100644
--- a/lib/src/lib.rs
+++ b/lib/src/lib.rs
@@ -58,9 +58,9 @@ pub fn decode(buf: &[u8]) -> Vec<u8> {
match (decode_sym(pair[0]), decode_sym(pair[1]), decode_sym(pair[2]), decode_sym(pair[3])) {
(Some(zero), Some(one), Some(two), Some(three)) => out.push((zero << 6) + (one << 4) + (two << 2) + three),
(_, _, _, _) => {
- // U+FFFD � REPLACEMENT CHARACTER
- out.push(0xFF);
- out.push(0xFD);
+ for b in "�".as_bytes() {
+ out.push(*b);
+ }
}
}
}