From 1fbcaa26e75a4547148655adf77a340cf1942080 Mon Sep 17 00:00:00 2001
From: "Brian C. Arnold" <connect@brian-arnold.dev>
Date: Thu, 22 May 2025 08:25:45 -0400
Subject: [PATCH] Remove the 10_utf16.patch, it was already applied upstream in
 commit 2a0f4df, and copied over to the debian repo in commit d68ccb0.

---
 debian/patches/10_utf16.patch | 45 -----------------------------------
 debian/patches/series         |  2 +-
 2 files changed, 1 insertion(+), 46 deletions(-)
 delete mode 100644 debian/patches/10_utf16.patch

diff --git a/debian/patches/10_utf16.patch b/debian/patches/10_utf16.patch
deleted file mode 100644
index a406bf6..0000000
--- a/debian/patches/10_utf16.patch
+++ /dev/null
@@ -1,45 +0,0 @@
-Author: Kurt Roeckx <kurt@roeckx.be>
-Last-Update: 2006-01-13 15:32:41 +0100
-Description: Handle bogus UTF16 sequences that have a length that is not
-             an even number of 8 bit characters.
-
-if [ $# -lt 1 ]; then
-    echo "`basename $0`: script expects -patch|-unpatch as argument" >&2
-    exit 1
-fi
-
-[ -f debian/patches/00patch-opts ] && . debian/patches/00patch-opts
-patch_opts="${patch_opts:--f --no-backup-if-mismatch} ${2:+-d $2}"
-
-case "$1" in
-    -patch) patch -p1 ${patch_opts} < $0;;
-    -unpatch) patch -R -p1 ${patch_opts} < $0;;
-    *)
-        echo "`basename $0`: script expects -patch|-unpatch as argument" >&2
-        exit 1;;
-esac
-
-exit 0
-
-@DPATCH@
---- a/utf16.c
-+++ b/utf16.c
-@@ -293,5 +293,18 @@ id3_ucs4_t *id3_utf16_deserialize(id3_by
-      (*ptr)++;
-   }
- 
-+  if (end == *ptr && length % 2 != 0)
-+  {
-+     /* We were called with a bogus length.  It should always
-+      * be an even number.  We can deal with this in a few ways:
-+      * - Always give an error.
-+      * - Try and parse as much as we can and
-+      *   - return an error if we're called again when we
-+      *     already tried to parse everything we can.
-+      *   - tell that we parsed it, which is what we do here.
-+      */
-+     (*ptr)++;
-+  }
-+
-   return ucs4;
- }
diff --git a/debian/patches/series b/debian/patches/series
index 61df0e8..87e0825 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -1,2 +1,2 @@
-10_utf16.patch
+# 10_utf16.patch
 # static_lib.patch
-- 
2.49.0

