<div dir="auto">Just... I'm pretty sure python3-debian handles utf8 just fine, at the very least.</div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Sat, 23 Nov 2019, 6:51 pm Chris Lamb, <<a href="mailto:gitlab@salsa.debian.org">gitlab@salsa.debian.org</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><u></u>
<div>
<div>
<h3>
Chris Lamb pushed to branch master
at <a href="https://salsa.debian.org/reproducible-builds/diffoscope" target="_blank" rel="noreferrer">Reproducible Builds / diffoscope</a>
</h3>
<h4>
Commits:
</h4>
<ul>
<li>
<strong><a href="https://salsa.debian.org/reproducible-builds/diffoscope/commit/ab342790d824d1683d8f7654c570b810e3540274" target="_blank" rel="noreferrer">ab342790</a></strong>
<div>
<span>by Chris Lamb</span>
<i>at 2019-11-23T17:51:06Z</i>
</div>
<pre style="white-space:pre-wrap;margin:0">Limit .dsc and .buildinfo file matching to files in ASCII format. (Closes: reproducible-builds/diffoscope#77)
</pre>
</li>
</ul>
<h4>1 changed file:</h4>
<ul>
<li>
<a href="#m_-1825202084557878326_6e9ba94e7492bb3557b65284d13a9dd94a843708" rel="noreferrer">
diffoscope/comparators/debian.py
</a>
</li>
</ul>
<h4>Changes:</h4>
<li id="m_-18252020845578783266e9ba94e7492bb3557b65284d13a9dd94a843708">
<a href="https://salsa.debian.org/reproducible-builds/diffoscope/commit/ab342790d824d1683d8f7654c570b810e3540274#6e9ba94e7492bb3557b65284d13a9dd94a843708" target="_blank" rel="noreferrer"><strong>diffoscope/comparators/debian.py</strong></a>
<hr>
<table style="font-family:monospace;font-size:90%" bgcolor="#fff" width="100%" cellpadding="0" cellspacing="0">
<tr id="m_-1825202084557878326" style="line-height:1.6">
<td style="width:35px;color:rgba(0,0,0,0.3);border-right-width:1px;border-right-color:#f0f0f0;border-right-style:solid;padding:0 5px" align="right" bgcolor="#fafafa">...</td>
<td style="width:35px;color:rgba(0,0,0,0.3);border-right-width:1px;border-right-color:#f0f0f0;border-right-style:solid;padding:0 5px" align="right" bgcolor="#fafafa">...</td>
<td style="padding-left:0.5em;padding-right:0.5em;color:rgba(0,0,0,0.3)" bgcolor="#fafafa">@@ -166,6 +166,7 @@ class DebControlFile(File):</td>
</tr>
<tr id="m_-1825202084557878326" style="line-height:1.6">
<td style="width:35px;color:rgba(0,0,0,0.3);border-right-width:1px;border-right-color:#f0f0f0;border-right-style:solid;padding:0 5px" align="right" bgcolor="#fafafa">
166
</td>
<td style="width:35px;color:rgba(0,0,0,0.3);border-right-width:1px;border-right-color:#f0f0f0;border-right-style:solid;padding:0 5px" align="right" bgcolor="#fafafa">
166
</td>
<td style="padding-left:0.5em;padding-right:0.5em">
<pre style="margin:0"> <span id="m_-1825202084557878326LC166" lang="python"><span style="font-weight:600">class</span> <span style="color:#458;font-weight:600">DotChangesFile</span><span>(</span><span style="color:#333">DebControlFile</span><span>):</span></span>
</pre>
</td>
</tr>
<tr id="m_-1825202084557878326" style="line-height:1.6">
<td style="width:35px;color:rgba(0,0,0,0.3);border-right-width:1px;border-right-color:#f0f0f0;border-right-style:solid;padding:0 5px" align="right" bgcolor="#fafafa">
167
</td>
<td style="width:35px;color:rgba(0,0,0,0.3);border-right-width:1px;border-right-color:#f0f0f0;border-right-style:solid;padding:0 5px" align="right" bgcolor="#fafafa">
167
</td>
<td style="padding-left:0.5em;padding-right:0.5em">
<pre style="margin:0"> <span id="m_-1825202084557878326LC167" lang="python"> <span style="color:#333">DESCRIPTION</span> <span style="font-weight:600">=</span> <span style="color:#d14">"Debian .changes files"</span></span>
</pre>
</td>
</tr>
<tr id="m_-1825202084557878326" style="line-height:1.6">
<td style="width:35px;color:rgba(0,0,0,0.3);border-right-width:1px;border-right-color:#f0f0f0;border-right-style:solid;padding:0 5px" align="right" bgcolor="#fafafa">
168
</td>
<td style="width:35px;color:rgba(0,0,0,0.3);border-right-width:1px;border-right-color:#f0f0f0;border-right-style:solid;padding:0 5px" align="right" bgcolor="#fafafa">
168
</td>
<td style="padding-left:0.5em;padding-right:0.5em">
<pre style="margin:0"> <span id="m_-1825202084557878326LC168" lang="python"> <span style="color:#333">FILE_EXTENSION_SUFFIX</span> <span style="font-weight:600">=</span> <span style="color:#d14">'.changes'</span></span>
</pre>
</td>
</tr>
<tr id="m_-1825202084557878326" style="line-height:1.6">
<td style="width:35px;color:rgba(0,0,0,0.3);border-right-width:1px;border-right-color:#c7f0d2;border-right-style:solid;padding:0 5px" align="right" bgcolor="#ddfbe6">
</td>
<td style="width:35px;color:rgba(0,0,0,0.3);border-right-width:1px;border-right-color:#c7f0d2;border-right-style:solid;padding:0 5px" align="right" bgcolor="#ddfbe6">
169
</td>
<td style="padding-left:0.5em;padding-right:0.5em" bgcolor="#ecfdf0">
<pre style="margin:0">+<span id="m_-1825202084557878326LC169" lang="python"> <span style="color:#333">FILE_TYPE_RE</span> <span style="font-weight:600">=</span> <span style="color:#333">re</span><span style="font-weight:600">.</span><span style="color:#0086b3">compile</span><span>(</span><span style="color:#d14">r'^ASCII text'</span><span>)</span></span>
</pre>
</td>
</tr>
<tr id="m_-1825202084557878326" style="line-height:1.6">
<td style="width:35px;color:rgba(0,0,0,0.3);border-right-width:1px;border-right-color:#f0f0f0;border-right-style:solid;padding:0 5px" align="right" bgcolor="#fafafa">
169
</td>
<td style="width:35px;color:rgba(0,0,0,0.3);border-right-width:1px;border-right-color:#f0f0f0;border-right-style:solid;padding:0 5px" align="right" bgcolor="#fafafa">
170
</td>
<td style="padding-left:0.5em;padding-right:0.5em">
<pre style="margin:0"> <span id="m_-1825202084557878326LC170" lang="python"></span>
</pre>
</td>
</tr>
<tr id="m_-1825202084557878326" style="line-height:1.6">
<td style="width:35px;color:rgba(0,0,0,0.3);border-right-width:1px;border-right-color:#f0f0f0;border-right-style:solid;padding:0 5px" align="right" bgcolor="#fafafa">
170
</td>
<td style="width:35px;color:rgba(0,0,0,0.3);border-right-width:1px;border-right-color:#f0f0f0;border-right-style:solid;padding:0 5px" align="right" bgcolor="#fafafa">
171
</td>
<td style="padding-left:0.5em;padding-right:0.5em">
<pre style="margin:0"> <span id="m_-1825202084557878326LC171" lang="python"> <span style="font-weight:600">@</span><span style="color:#0086b3">classmethod</span></span>
</pre>
</td>
</tr>
<tr id="m_-1825202084557878326" style="line-height:1.6">
<td style="width:35px;color:rgba(0,0,0,0.3);border-right-width:1px;border-right-color:#f0f0f0;border-right-style:solid;padding:0 5px" align="right" bgcolor="#fafafa">
171
</td>
<td style="width:35px;color:rgba(0,0,0,0.3);border-right-width:1px;border-right-color:#f0f0f0;border-right-style:solid;padding:0 5px" align="right" bgcolor="#fafafa">
172
</td>
<td style="padding-left:0.5em;padding-right:0.5em">
<pre style="margin:0"> <span id="m_-1825202084557878326LC172" lang="python"> <span style="font-weight:600">def</span> <span style="color:#900;font-weight:600">recognizes</span><span>(</span><span style="color:#333">cls</span><span>,</span> <span style="color:#0086b3">file</span><span>):</span></span>
</pre>
</td>
</tr>
<tr id="m_-1825202084557878326" style="line-height:1.6">
<td style="width:35px;color:rgba(0,0,0,0.3);border-right-width:1px;border-right-color:#f0f0f0;border-right-style:solid;padding:0 5px" align="right" bgcolor="#fafafa">...</td>
<td style="width:35px;color:rgba(0,0,0,0.3);border-right-width:1px;border-right-color:#f0f0f0;border-right-style:solid;padding:0 5px" align="right" bgcolor="#fafafa">...</td>
<td style="padding-left:0.5em;padding-right:0.5em;color:rgba(0,0,0,0.3)" bgcolor="#fafafa">@@ -262,6 +263,7 @@ class DotBuildinfoFile(DebControlFile):</td>
</tr>
<tr id="m_-1825202084557878326" style="line-height:1.6">
<td style="width:35px;color:rgba(0,0,0,0.3);border-right-width:1px;border-right-color:#f0f0f0;border-right-style:solid;padding:0 5px" align="right" bgcolor="#fafafa">
262
</td>
<td style="width:35px;color:rgba(0,0,0,0.3);border-right-width:1px;border-right-color:#f0f0f0;border-right-style:solid;padding:0 5px" align="right" bgcolor="#fafafa">
263
</td>
<td style="padding-left:0.5em;padding-right:0.5em">
<pre style="margin:0"> <span id="m_-1825202084557878326LC263" lang="python"> <span style="color:#333">DESCRIPTION</span> <span style="font-weight:600">=</span> <span style="color:#d14">"Debian .buildinfo files"</span></span>
</pre>
</td>
</tr>
<tr id="m_-1825202084557878326" style="line-height:1.6">
<td style="width:35px;color:rgba(0,0,0,0.3);border-right-width:1px;border-right-color:#f0f0f0;border-right-style:solid;padding:0 5px" align="right" bgcolor="#fafafa">
263
</td>
<td style="width:35px;color:rgba(0,0,0,0.3);border-right-width:1px;border-right-color:#f0f0f0;border-right-style:solid;padding:0 5px" align="right" bgcolor="#fafafa">
264
</td>
<td style="padding-left:0.5em;padding-right:0.5em">
<pre style="margin:0"> <span id="m_-1825202084557878326LC264" lang="python"> <span style="color:#333">CONTAINER_CLASS</span> <span style="font-weight:600">=</span> <span style="color:#333">DotBuildinfoContainer</span></span>
</pre>
</td>
</tr>
<tr id="m_-1825202084557878326" style="line-height:1.6">
<td style="width:35px;color:rgba(0,0,0,0.3);border-right-width:1px;border-right-color:#f0f0f0;border-right-style:solid;padding:0 5px" align="right" bgcolor="#fafafa">
264
</td>
<td style="width:35px;color:rgba(0,0,0,0.3);border-right-width:1px;border-right-color:#f0f0f0;border-right-style:solid;padding:0 5px" align="right" bgcolor="#fafafa">
265
</td>
<td style="padding-left:0.5em;padding-right:0.5em">
<pre style="margin:0"> <span id="m_-1825202084557878326LC265" lang="python"> <span style="color:#333">FILE_EXTENSION_SUFFIX</span> <span style="font-weight:600">=</span> <span style="color:#d14">'.buildinfo'</span></span>
</pre>
</td>
</tr>
<tr id="m_-1825202084557878326" style="line-height:1.6">
<td style="width:35px;color:rgba(0,0,0,0.3);border-right-width:1px;border-right-color:#c7f0d2;border-right-style:solid;padding:0 5px" align="right" bgcolor="#ddfbe6">
</td>
<td style="width:35px;color:rgba(0,0,0,0.3);border-right-width:1px;border-right-color:#c7f0d2;border-right-style:solid;padding:0 5px" align="right" bgcolor="#ddfbe6">
266
</td>
<td style="padding-left:0.5em;padding-right:0.5em" bgcolor="#ecfdf0">
<pre style="margin:0">+<span id="m_-1825202084557878326LC266" lang="python"> <span style="color:#333">FILE_TYPE_RE</span> <span style="font-weight:600">=</span> <span style="color:#333">re</span><span style="font-weight:600">.</span><span style="color:#0086b3">compile</span><span>(</span><span style="color:#d14">r'^ASCII text'</span><span>)</span></span>
</pre>
</td>
</tr>
<tr id="m_-1825202084557878326" style="line-height:1.6">
<td style="width:35px;color:rgba(0,0,0,0.3);border-right-width:1px;border-right-color:#f0f0f0;border-right-style:solid;padding:0 5px" align="right" bgcolor="#fafafa">
265
</td>
<td style="width:35px;color:rgba(0,0,0,0.3);border-right-width:1px;border-right-color:#f0f0f0;border-right-style:solid;padding:0 5px" align="right" bgcolor="#fafafa">
267
</td>
<td style="padding-left:0.5em;padding-right:0.5em">
<pre style="margin:0"> <span id="m_-1825202084557878326LC267" lang="python"></span>
</pre>
</td>
</tr>
<tr id="m_-1825202084557878326" style="line-height:1.6">
<td style="width:35px;color:rgba(0,0,0,0.3);border-right-width:1px;border-right-color:#f0f0f0;border-right-style:solid;padding:0 5px" align="right" bgcolor="#fafafa">
266
</td>
<td style="width:35px;color:rgba(0,0,0,0.3);border-right-width:1px;border-right-color:#f0f0f0;border-right-style:solid;padding:0 5px" align="right" bgcolor="#fafafa">
268
</td>
<td style="padding-left:0.5em;padding-right:0.5em">
<pre style="margin:0"> <span id="m_-1825202084557878326LC268" lang="python"> <span style="font-weight:600">@</span><span style="color:#0086b3">classmethod</span></span>
</pre>
</td>
</tr>
<tr id="m_-1825202084557878326" style="line-height:1.6">
<td style="width:35px;color:rgba(0,0,0,0.3);border-right-width:1px;border-right-color:#f0f0f0;border-right-style:solid;padding:0 5px" align="right" bgcolor="#fafafa">
267
</td>
<td style="width:35px;color:rgba(0,0,0,0.3);border-right-width:1px;border-right-color:#f0f0f0;border-right-style:solid;padding:0 5px" align="right" bgcolor="#fafafa">
269
</td>
<td style="padding-left:0.5em;padding-right:0.5em">
<pre style="margin:0"> <span id="m_-1825202084557878326LC269" lang="python"> <span style="font-weight:600">def</span> <span style="color:#900;font-weight:600">recognizes</span><span>(</span><span style="color:#333">cls</span><span>,</span> <span style="color:#0086b3">file</span><span>):</span></span>
</pre>
</td>
</tr>
</table>
<br>
</li>
</div>
<div style="margin-top:10px">
<p style="font-size:small;color:#777">
—
<br>
<a href="https://salsa.debian.org/reproducible-builds/diffoscope/commit/ab342790d824d1683d8f7654c570b810e3540274" target="_blank" rel="noreferrer">View it on GitLab</a>.
<br>
You're receiving this email because of your account on <a href="http://salsa.debian.org" target="_blank" rel="noreferrer">salsa.debian.org</a>.
If you'd like to receive fewer emails, you can
adjust your notification settings.
</p>
</div>
</div>
_______________________________________________<br>
<a href="mailto:rb-commits@lists.reproducible-builds.org" target="_blank" rel="noreferrer">rb-commits@lists.reproducible-builds.org</a> mailing list<br>
<br>
To change your subscription options, visit<br>
<a href="https://lists.reproducible-builds.org/listinfo/rb-commits" rel="noreferrer noreferrer" target="_blank">https://lists.reproducible-builds.org/listinfo/rb-commits</a>.<br>
<br>
To unsubscribe, send an email to <a href="mailto:rb-commits-unsubscribe@lists.reproducible-builds.org" target="_blank" rel="noreferrer">rb-commits-unsubscribe@lists.reproducible-builds.org</a>.<br>
</blockquote></div>