commit:     114b3f78dcd059d33fa9058ed78cced482fc248a
Author:     Ulrich Müller <ulm <AT> gentoo <DOT> org>
AuthorDate: Sat Jul 12 09:57:52 2025 +0000
Commit:     Ulrich Müller <ulm <AT> gentoo <DOT> org>
CommitDate: Sat Jul 12 09:57:52 2025 +0000
URL:        https://gitweb.gentoo.org/proj/qa-scripts.git/commit/?id=114b3f78

find-binary-files.sh: Recognise application/mbox

file-5.46 reports some patches as application/mbox:

app-editors/padre/files/padre-1.0.0-utf8.patch: application/mbox; 
charset=iso-8859-1 (size=737)
dev-perl/Date-Pcalc/files/Date-Pcalc-6.100.0-datestamp-window-move.patch: 
application/mbox; charset=iso-8859-1 (size=17413)
games-emulation/gngb/files/gngb-20060309-gcc10.patch: application/mbox; 
charset=iso-8859-1 (size=10283)
media-sound/solfege/files/solfege-3.23.4-topdocs-encodings.patch: 
application/mbox; charset=unknown-8bit (size=1347)
x11-misc/macopix/files/macopix-3.4.0-fno-common.patch: application/mbox; 
charset=iso-8859-1 (size=8807)

We must allow charset=unknown-8bit, because it occurs for patches that
change encoding from latin-1 to utf-8.

Signed-off-by: Ulrich Müller <ulm <AT> gentoo.org>

 find-binary-files.sh | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/find-binary-files.sh b/find-binary-files.sh
index b053d2f..5e0e6ff 100755
--- a/find-binary-files.sh
+++ b/find-binary-files.sh
@@ -1,5 +1,5 @@
 #!/bin/bash
-# Copyright 2014-2024 Ulrich Müller
+# Copyright 2014-2025 Ulrich Müller
 # Distributed under the terms of the GNU GPL version 2 or later
 # Author: Ulrich Müller <[email protected]>
 
@@ -30,6 +30,8 @@ while read line; do
         text/*) ;;                            # text file
         application/*"; charset=us-ascii") ;;
         application/*"; charset=utf-8") ;;
+        "application/mbox; charset=iso-8859-1") ;;
+        "application/mbox; charset=unknown-8bit") ;;
         "image/svg; charset=us-ascii") ;;     # SVG image
         "image/svg+xml; charset=us-ascii") ;; # SVG image
         "image/x-xpmi; charset=us-ascii") ;;  # XPM image

Reply via email to