[squeak-dev] base64 encoding and CRs

Vanessa Freudenberg vanessa at codefrau.net
Sat Aug 22 01:29:15 UTC 2020


Hi Tim,

our encoder might not be producing cr's, but base64 payloads in the wild
often have lines no longer than 80 characters, so before decoding it makes
sense to remove that.

Vanessa

On Fri, Aug 21, 2020 at 6:00 PM tim Rowledge <tim at rowledge.org> wrote:

> As best I can see base64 encoding never results in the output having
> Character cr embedded, right?
>
> Why would I ask such a dumb question? Because I'm looking at some code
> that carefully does a copyReplaceAll: on a base64 encoded String that was a
> bitmap, and I can't imagine how that could ever not corrupt the bitmap *if*
> there were any chance it did indeed include CRs.
>
> And it's late on a Friday and to be honest, anything could be possible in
> 2020.
>
> tim
> --
> tim Rowledge; tim at rowledge.org; http://www.rowledge.org/tim
> Useful random insult:- His spirit guide is a three-toed sloth.
>
>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.squeakfoundation.org/pipermail/squeak-dev/attachments/20200821/ee72ccc6/attachment.html>


More information about the Squeak-dev mailing list