Package: itstool / 2.0.6-1

Metadata

Package Version Patches format
itstool 2.0.6-1 3.0 (quilt)

Patch series

view the series file
Patch File delta Description
fix_crash_912099.patch | (download)

itstool.in | 21 17 + 4 - 0 !
1 file changed, 17 insertions(+), 4 deletions(-)

 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.
Bug: https://github.com/itstool/itstool/issues/25
Bug-Debian: https://bugs.debian.org/912099
fix_crash_918953.patch | (download)

itstool.in | 5 4 + 1 - 0 !
1 file changed, 4 insertions(+), 1 deletion(-)

 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.
Bug-Debian: https://bugs.debian.org/918953