summaryrefslogtreecommitdiff
path: root/app-doc/doxygen/files/doxygen-1.9.1-ignore-bad-encoding.patch
diff options
context:
space:
mode:
authorMichał Górny <mgorny@gentoo.org>2024-01-11 17:04:37 +0100
committerMichał Górny <mgorny@gentoo.org>2024-01-12 15:36:00 +0100
commitf7fdfdaeec3764929686064a6054c38a6b2d7788 (patch)
treea420a7aa231f9c43b9911a90b4cfa99ba60b3a24 /app-doc/doxygen/files/doxygen-1.9.1-ignore-bad-encoding.patch
parent97d464ca1fac11a186de447c6e258771063af450 (diff)
downloadgentoo-f7fdfdaeec3764929686064a6054c38a6b2d7788.tar.gz
gentoo-f7fdfdaeec3764929686064a6054c38a6b2d7788.tar.bz2
gentoo-f7fdfdaeec3764929686064a6054c38a6b2d7788.zip
Move {app-doc → app-text}/doxygen
Per the category metadata, app-doc/ is reserved for documentation *files* and not software. Move it to app-text/ where it seems a better fit. Signed-off-by: Michał Górny <mgorny@gentoo.org>
Diffstat (limited to 'app-doc/doxygen/files/doxygen-1.9.1-ignore-bad-encoding.patch')
-rw-r--r--app-doc/doxygen/files/doxygen-1.9.1-ignore-bad-encoding.patch23
1 files changed, 0 insertions, 23 deletions
diff --git a/app-doc/doxygen/files/doxygen-1.9.1-ignore-bad-encoding.patch b/app-doc/doxygen/files/doxygen-1.9.1-ignore-bad-encoding.patch
deleted file mode 100644
index 5dd7578f24ec..000000000000
--- a/app-doc/doxygen/files/doxygen-1.9.1-ignore-bad-encoding.patch
+++ /dev/null
@@ -1,23 +0,0 @@
-Hack to avoid "UnicodeDecodeError: 'utf-8' codec can't decode byte 0xb0 in position 45: invalid start byte"
-in src/._xmlgen.cpp which is binary. This doesn't seem like it should be present at the time the docs
-are generated, but this is simpler for now.
---- a/doc/translator.py
-+++ b/doc/translator.py
-@@ -1454,10 +1454,13 @@ class TrManager:
-
- # Read content of the file as one string.
- assert os.path.isfile(fname)
-- f = xopen(fname)
-- cont = f.read()
-- cont = ''.join(cont.split('\n')) # otherwise the 'match' function won't work.
-- f.close()
-+ try:
-+ with xopen(fname) as f:
-+ cont = f.read()
-+ cont = ''.join(cont.split('\n')) # otherwise the 'match' function won't work.
-+ except UnicodeDecodeError:
-+ print("Skipping {0} because of decoding errors".format(fname))
-+ return
-
- # Remove the items for identifiers that were found in the file.
- while lst_in: