Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > gnu.groff.bug > #1812
| From | "G. Branden Robinson" <INVALID.NOREPLY@gnu.org> |
|---|---|
| Newsgroups | gnu.groff.bug |
| Subject | [bug #58165] test-suite: "nroff -V ..." fails for other devices than "ascii" |
| Date | 2020-04-13 04:36 -0400 |
| Message-ID | <mailman.145.1586766974.3066.bug-groff@gnu.org> (permalink) |
| References | <20200412-203706.sv93188.8615@savannah.gnu.org> <20200412-220343.sv108747.17736@savannah.gnu.org> <20200412-221316.sv108747.84108@savannah.gnu.org> <20200413-021329.sv93188.98398@savannah.gnu.org> <20200413-083610.sv108747.38378@savannah.gnu.org> |
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/
Back to gnu.groff.bug | Previous | Next | Find similar
[bug #58165] test-suite: "nroff -V ..." fails for other devices than "ascii" "G. Branden Robinson" <INVALID.NOREPLY@gnu.org> - 2020-04-13 04:36 -0400
csiph-web