mirror of
https://github.com/uutils/coreutils
synced 2024-11-15 01:17:09 +00:00
Merge pull request #70 from jordyd/base64
Fix base64 due to from_utf8 and replace changes
This commit is contained in:
commit
c00c608567
1 changed files with 2 additions and 2 deletions
|
@ -82,9 +82,9 @@ fn main() {
|
|||
}
|
||||
|
||||
fn decode(input: &mut Reader, ignore_garbage: bool) {
|
||||
let mut to_decode = str::from_utf8_owned(input.read_to_end());
|
||||
let mut to_decode = str::from_utf8_owned(input.read_to_end()).unwrap();
|
||||
|
||||
to_decode = to_decode.replace("\n", "");
|
||||
to_decode = str::replace(to_decode, "\n", "");
|
||||
|
||||
if ignore_garbage {
|
||||
let standard_chars =
|
||||
|
|
Loading…
Reference in a new issue