]> git.lizzy.rs Git - rust.git/commit
serialize: base64: allow LF in addition to CRLF and optimize slightly
authorArcterus <Arcterus@mail.com>
Sat, 6 Dec 2014 10:35:26 +0000 (02:35 -0800)
committerArcterus <Arcterus@mail.com>
Tue, 9 Dec 2014 15:40:21 +0000 (07:40 -0800)
commit553ab271a31a9573fb6e95d03d8f4d00e17d6511
treeef60f079e656c31961eef9bb891a847d93393ea2
parentcafe2966770ff377aad6dd9fd808e68055587c58
serialize: base64: allow LF in addition to CRLF and optimize slightly

It is useful to have configurable newlines in base64 as the standard
leaves that for the implementation to decide.  GNU `base64` apparently
uses LF, which meant in `uutils` we had to manually convert the CRLF to
LF.  This made the program very slow for large inputs.

[breaking-change]
src/libserialize/base64.rs
src/libserialize/lib.rs