Debian Patches

Status for itstool/2.0.6-4

Patch Description Author Forwarded Bugs Origin Last update
fix_crash_912099.patch Fix the crash from #912099 ITS Tool 2.0.4 crashes when building some documentation, as reported in
#912099. This comes from translations with invalid XML markup, which ITS Tool
fails to merge (which is not abnormal), and to report these issues, needlessly
encodes the original msgstr from unicode to bytes, causing it to be recoded
using the default ascii codec, which fails when the msgstr contains anything
out of ascii.
.
This patch removes the useless decoding, avoiding the failing subsequent
recoding. It also explicitly encodes the output strings to be able to print
them in all cases, even when the output encoding cannot be detected.

===================================================================
Tanguy Ortolo <tanguy+debian@ortolo.eu> yes debian upstream
fix_crash_918953.patch Fix the crash from #918953 ITS Tool 2.0.4 crashes when output is redictected to a pipe, as reported in
#918953. This comes from Python not knowing the preferred encoding for stdout,
and using ASCII by default, therefore failing to encode anything outside of it.
.
This patch makes ITS Tool write to an UTF-8 encoding wrapper around stdout.

===================================================================
Tanguy Ortolo <tanguy+debian@ortolo.eu> no debian 2019-01-17
fix_warnings_1071634.patch [PATCH] Fix insufficiently quoted regular expressions
These went under the radar until Python 3.12 started warning about them.
Nils Philippsen <nils@tiptoe.de> yes debian upstream https://github.com/itstool/itstool/pull/51 2023-10-09
fix_919058.patch Fix handling of untranslated nodes
If a translation is missing, get_translated returns the node it was
called with. But ph_node when passed to get_translated is part of
another document and cannot just be reparented, it needs to be cloned.
The reparenting leaves things in an inconsistent state where references
intended to refer to nodes in the original document no longer do so, and
they may then be accessed from those references after the new document
has already been freed.

Fixes bug #36.
Harald van Dijk <harald@gigawatt.nl> no https://github.com/itstool/itstool/pull/47 2023-06-15

All known versions for source package 'itstool'

Links