Package: discount
Version: 2.1.7-1
Severity: wishlist
Tags: patches
Forwarded: https://github.com/Orc/discount/pull/112
User: reproducible-bui...@lists.alioth.debian.org
Usertags: randomness

Hi!

As part of the “reproducible builds” project [1], we have identified
that currently discount output was not deterministic when the Markdown
source contained email addresses.

Some Debian packages use discount to generate their documentation. This
causes different builds of these packages to be different.

We assume that the current behavior of randomly choosing between hex and
decimal encoding for email addresses is intended to defeat email
scrapers that understand one encoding but not the other. Could discount
instead alternate every other character between hex and decimal? This
would accomplish the same effect but in a deterministic manner.

The attached patch changes the `mangle()` function accordingly. It has
already been submitted upstream.

 [1]: https://wiki.debian.org/ReproducibleBuilds

-- 
Lunar                                .''`. 
lu...@debian.org                    : :Ⓐ  :  # apt-get install anarchism
                                    `. `'` 
                                      `-   

Attachment: signature.asc
Description: Digital signature

Reply via email to