2016-03-31 09:21:37 |
Gert van den Berg |
bug |
|
|
added bug |
2016-03-31 09:21:37 |
Gert van den Berg |
attachment added |
|
Sample file https://bugs.launchpad.net/bugs/1564317/+attachment/4618069/+files/test.html |
|
2016-03-31 09:23:51 |
Gert van den Berg |
description |
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 |
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 |
|
2016-04-01 06:48:26 |
Gert van den Berg |
attachment added |
|
Patch to modify patches to return an error code on recoding errors https://bugs.launchpad.net/ubuntu/+source/html2text/+bug/1564317/+attachment/4619089/+files/htmltext-encoding-error-code.patch |
|
2016-04-01 08:23:58 |
Ubuntu Foundations Team Bug Bot |
tags |
|
patch |
|
2016-04-01 08:24:08 |
Ubuntu Foundations Team Bug Bot |
bug |
|
|
added subscriber Ubuntu Review Team |
2016-04-04 13:59:34 |
Gert van den Berg |
bug task added |
|
hundredpapercuts |
|
2017-03-02 12:01:00 |
Gert van den Berg |
description |
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 |
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 / Ubuntu 16.04
Package: html2text-1.3.2a-17 / html2text-1.3.2a-18 |
|
2017-03-10 11:02:37 |
Launchpad Janitor |
html2text (Ubuntu): status |
New |
Confirmed |
|
2017-03-10 11:17:55 |
Roland Giesler |
bug watch added |
|
https://github.com/Alir3z4/html2text/issues/156 |
|