Public bug reported:
When running html2text on a file with incorrect encoding (e.g. indicated
as us-ascii, but actually UTF-8), it fails with an error message but
returns a successful result code (0).
Actual output:
-----------------
$ html2text test.html; echo $?
Input recoding failed due to invalid input sequence. Unconverted part of text
follows.
“Test”)
</body>
</html>
0
Expected output: (substitute 1 for any appropriate failure code)
----------------------
$ html2text test.html; echo $?
Input recoding failed due to invalid input sequence. Unconverted part of text
follows.
“Test”)
</body>
</html>
1
This seem to have been introduced by 611-recognize-input-encoding.patch
OS: Ubuntu 14.04
Package: html2text-1.3.2a-17
** Affects: html2text (Ubuntu)
Importance: Undecided
Status: New
** Attachment added: "Sample file"
https://bugs.launchpad.net/bugs/1564317/+attachment/4618069/+files/test.html
** Description changed:
When running html2text on a file with incorrect encoding (e.g. indicated
as us-ascii, but actually UTF-8), it fails with an error message but
returns a successful result code (0).
Actual output:
-----------------
$ html2text test.html; echo $?
Input recoding failed due to invalid input sequence. Unconverted part of text
follows.
“Test”)
</body>
</html>
0
Expected output: (substitute 1 for any appropriate failure code)
----------------------
$ html2text test.html; echo $?
Input recoding failed due to invalid input sequence. Unconverted part of text
follows.
“Test”)
</body>
</html>
1
This seem to have been introduced by 611-recognize-input-encoding.patch
+
+ OS: Ubuntu 14.04
+ Package: html2text-1.3.2a-17
--
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