Discussion:
[bug #58164] First html-test fails when a non-utf-8 charmap is used
(too old to reply)
Bjarni Ingi Gislason
2020-04-12 19:47:46 UTC
Permalink
URL:
<https://savannah.gnu.org/bugs/?58164>

Summary: First html-test fails when a non-utf-8 charmap is
used
Project: GNU troff
Submitted by: bjarniig
Submitted on: Sun 12 Apr 2020 07:47:45 PM UTC
Category: Core
Severity: 3 - Normal
Item Group: Test
Status: None
Privacy: Public
Assigned to: None
Open/Closed: Open
Discussion Lock: Any
Planned Release: None

_______________________________________________________

Details:

Subject: First html-test fails when a non-utf-8 charmap is used

The first test in "src/roff/groff/tests/smoke-test_html_device.sh"
fails in locales with one octet per character,
for example ISO-8859-1 (latin1).

N.B.
Give each test a ordinal number in the output (and the total).





_______________________________________________________

Reply to this item at:

<https://savannah.gnu.org/bugs/?58164>

_______________________________________________
Message sent via Savannah
https://savannah.gnu.org/
G. Branden Robinson
2020-04-12 21:59:13 UTC
Permalink
Update of bug #58164 (project groff):

Status: None => Fixed
Assigned to: None => gbranden
Open/Closed: Open => Closed

_______________________________________________________

Follow-up Comment #1:

Fixed in d00b53e122fc56819a2d87feab3d79ee916705d5.

_______________________________________________________

Reply to this item at:

<https://savannah.gnu.org/bugs/?58164>

_______________________________________________
Message sent via Savannah
https://savannah.gnu.org/
Bjarni Ingi Gislason
2020-04-13 13:00:11 UTC
Permalink
Follow-up Comment #2, bug #58164 (project groff):

I still have an error.

A robust way to treat input in UTF-8 is to explicitly set the
encoding for "preconv" with "-K UTF-8".

So exchange '-k' with '-K UTF-8' for the first test (in two places)

The line

LC_CTYPE=C.UTF-8

can then be removed.


_______________________________________________________

Reply to this item at:

<https://savannah.gnu.org/bugs/?58164>

_______________________________________________
Message sent via Savannah
https://savannah.gnu.org/
G. Branden Robinson
2020-04-13 13:13:46 UTC
Permalink
Follow-up Comment #3, bug #58164 (project groff):

I noticed this myself when running the test suite under an is_IS.ISO-8859-1
environment.

Try the commit I just pushed, be938bab8be71b54f107a56a1025d5c916b107dc.

_______________________________________________________

Reply to this item at:

<https://savannah.gnu.org/bugs/?58164>

_______________________________________________
Message sent via Savannah
https://savannah.gnu.org/

Loading...