Commits (2)
diffoscope (205) UNRELEASED; urgency=medium
* WIP (generated upon release).
-- Chris Lamb <lamby@debian.org> Fri, 11 Feb 2022 10:43:35 -0800
diffoscope (205) unstable; urgency=medium
* Fix a file(1)-related regression where .changes files that contained
non-ASCII text were not identified as being .changes files, resulting in
seemingly arbitrary packages on tests.reproducible-builds.org and elswhere
not comparing the package at all. The non-ASCII parts could have been in
the Maintainer or in the upload changelog, so we were effectively
penalising anyone outside of the Anglosphere.
(Closes: reproducible-builds/diffoscope#291)
* Don't print a warning to the console regarding NT_GNU_BUILD_ID changes in
ELF binaries.
-- Chris Lamb <lamby@debian.org> Sat, 19 Feb 2022 14:58:57 -0800
diffoscope (204) unstable; urgency=medium
......
......@@ -17,4 +17,4 @@
# You should have received a copy of the GNU General Public License
# along with diffoscope. If not, see <https://www.gnu.org/licenses/>.
VERSION = "204"
VERSION = "205"
......@@ -237,7 +237,13 @@ class DotChangesFile(DebControlFile):
# .changes files can be identified "data" if they contain non-printable
# characters (Re: reproducible-builds/diffoscope#286)
FILE_TYPE_RE = re.compile(r"^(ASCII text|UTF-8 Unicode text|data)")
#
# In addition, different versions of file(1) can emit "UTF-8 Unicode text"
# or "UTF-8 Unicode text" for .changes files that use non-ASCII characters,
# so we have to look for both. (Re: reproducible-builds/diffoscope#291)
FILE_TYPE_RE = re.compile(
r"^(ASCII text|UTF-8 Unicode text|data|Unicode text, UTF-8 text)"
)
@classmethod
def recognizes(cls, file):
......