Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > gnu.groff.bug > #1812

[bug #58165] test-suite: "nroff -V ..." fails for other devices than "ascii"

Path csiph.com!xmission!news.snarked.org!news.linkpendium.com!news.linkpendium.com!panix!usenet.stanford.edu!not-for-mail
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 Mon, 13 Apr 2020 04:36:10 -0400 (EDT)
Lines 64
Approved bug-groff@gnu.org
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>
NNTP-Posting-Host lists.gnu.org
Mime-Version 1.0
Content-Type text/plain;charset=UTF-8
X-Trace usenet.stanford.edu 1586766975 21605 209.51.188.17 (13 Apr 2020 08:36:15 GMT)
X-Complaints-To action@cs.stanford.edu
To "G. Branden Robinson" <g.branden.robinson@gmail.com>, Bjarni Ingi Gislason <bjarniig@rhi.hi.is>, bug-groff@gnu.org
Envelope-to bug-groff@gnu.org
X-PHP-Originating-Script 1001:sendmail.php
X-Savane-Server savannah.gnu.org:443 [209.51.188.72]
X-Savane-Project groff
X-Savane-Tracker bugs
X-Savane-Item-ID 58165
User-Agent Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Firefox/68.0
X-Apparently-From 1.129.106.180 (Savane authenticated user gbranden)
In-Reply-To <20200413-021329.sv93188.98398@savannah.gnu.org>
X-detected-operating-system by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic]
X-Received-From 209.51.188.72
X-BeenThere bug-groff@gnu.org
X-Mailman-Version 2.1.23
Precedence list
List-Id "Bug reports for the GNU version of nroff, troff et al" <bug-groff.gnu.org>
List-Unsubscribe <https://lists.gnu.org/mailman/options/bug-groff>, <mailto:bug-groff-request@gnu.org?subject=unsubscribe>
List-Archive <https://lists.gnu.org/archive/html/bug-groff>
List-Post <mailto:bug-groff@gnu.org>
List-Help <mailto:bug-groff-request@gnu.org?subject=help>
List-Subscribe <https://lists.gnu.org/mailman/listinfo/bug-groff>, <mailto:bug-groff-request@gnu.org?subject=subscribe>
X-Mailman-Original-Message-ID <20200413-083610.sv108747.38378@savannah.gnu.org>
X-Mailman-Original-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>
Xref csiph.com gnu.groff.bug:1812

Show key headers only | View raw


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


Thread

[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