Diffs for patch files: (for simple fix - return 2 for recoding error,
don't attempt to continue to other files) (The problem seems to be
present to at least the precise version)

--- 611-recognize-input-encoding.patch.orig     2016-03-31 18:25:01.914598768 
+0200
+++ 611-recognize-input-encoding.patch  2016-03-31 18:25:56.277593065 +0200
@@ -271,7 +271,7 @@
 +      }
 +      if (!result)
 +      {
-+              continue;
++              exit(2);
 +      }
 +
 +    if (number_of_input_urls != 1) {

--- 630-recode-output-to-locale-charset.patch.orig      2016-03-31 
18:25:11.939150917 +0200
+++ 630-recode-output-to-locale-charset.patch   2016-03-31 18:26:08.926289750 
+0200
@@ -75,7 +75,7 @@
 +              result = recode(output_stream, output_encoding, "UTF-8");
 +              if (!result)
 +              {
-+                      continue;
++                      exit(2);
 +              }
 +      }
 +      output_stream.clear();

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1564317

Title:
  Successful return code on encoding error

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/html2text/+bug/1564317/+subscriptions

-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to