[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[bug #58165] test-suite: "nroff -V ..." fails for other devices than "as
From: |
G. Branden Robinson |
Subject: |
[bug #58165] test-suite: "nroff -V ..." fails for other devices than "ascii" |
Date: |
Mon, 13 Apr 2020 04:36:10 -0400 (EDT) |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Firefox/68.0 |
Follow-up Comment #4, bug #58165 (project groff):
I configured my system to compile the 8-bit Icelandic locale, and I simply
cannot reproduce this with the stock test.
$ locale
LANG=C
LANGUAGE=
LC_CTYPE="is_IS.ISO-8859-1"
LC_NUMERIC="is_IS.ISO-8859-1"
LC_TIME="is_IS.ISO-8859-1"
LC_COLLATE="is_IS.ISO-8859-1"
LC_MONETARY="is_IS.ISO-8859-1"
LC_MESSAGES="is_IS.ISO-8859-1"
LC_PAPER="is_IS.ISO-8859-1"
LC_NAME="is_IS.ISO-8859-1"
LC_ADDRESS="is_IS.ISO-8859-1"
LC_TELEPHONE="is_IS.ISO-8859-1"
LC_MEASUREMENT="is_IS.ISO-8859-1"
LC_IDENTIFICATION="is_IS.ISO-8859-1"
LC_ALL=is_IS.ISO-8859-1
$ bash src/roff/nroff/tests/verbose_option_works.sh
testing 'nroff -V'
testing 'nroff -V 1'
testing 'nroff -V "1a 1b"'
testing 'nroff -V "1a 1b" 2'
testing 'nroff -V 1a\"1b 2'
$ echo $?
0
I can get 'latin1' in the output of nroff -V if I try to run pieces of the
test script in isolation, and forget to set LC_ALL:
$ GROFF_RUNTIME="${GROFF_BIN_PATH=.}:" ./nroff -V
PATH=/usr/local/bin:/home/branden/bin:/usr/local/bin:/usr/bin:/bin:/usr/local/sbin:/usr/sbin:/sbin:/usr/local/games:/usr/games
groff -Tlatin1 -mtty-char
$ LC_ALL=C GROFF_RUNTIME="${GROFF_BIN_PATH=.}:" ./nroff -V
PATH=/usr/local/bin:/home/branden/bin:/usr/local/bin:/usr/bin:/bin:/usr/local/sbin:/usr/sbin:/sbin:/usr/local/games:/usr/games
groff -Tascii -mtty-char
In the above, my current working directory is the "build/" subdirectory of a
groff git checkout.
I suspect your problem is arising from extracting pieces of the test script
and failing to prepare the locale in conformance with its expectations.
I also strongly encourage you to migrate every Unix system under your control
to UTF-8.
_______________________________________________________
Reply to this item at:
<https://savannah.gnu.org/bugs/?58165>
_______________________________________________
Message sent via Savannah
https://savannah.gnu.org/
- [bug #58165] test-suite: "nroff -V ..." fails for other devices than "ascii", Bjarni Ingi Gislason, 2020/04/12
- [bug #58165] test-suite: "nroff -V ..." fails for other devices than "ascii", G. Branden Robinson, 2020/04/12
- [bug #58165] test-suite: "nroff -V ..." fails for other devices than "ascii", G. Branden Robinson, 2020/04/12
- [bug #58165] test-suite: "nroff -V ..." fails for other devices than "ascii", Bjarni Ingi Gislason, 2020/04/12
- [bug #58165] test-suite: "nroff -V ..." fails for other devices than "ascii",
G. Branden Robinson <=
- [bug #58165] test-suite: "nroff -V ..." fails for other devices than "ascii", G. Branden Robinson, 2020/04/13
- [bug #58165] test-suite: "nroff -V ..." fails for other devices than "ascii", Bjarni Ingi Gislason, 2020/04/13
- [bug #58165] test-suite: "nroff -V ..." fails for other devices than "ascii", G. Branden Robinson, 2020/04/13
- [bug #58165] test-suite: "nroff -V ..." fails for other devices than "ascii", Bjarni Ingi Gislason, 2020/04/13