bug-groff
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [bug #59461] smoke-test_html_device.sh: make the test more independe


From: Bjarni Ingi Gislason
Subject: Re: [bug #59461] smoke-test_html_device.sh: make the test more independent of locale
Date: Mon, 16 Nov 2020 00:16:54 +0000
User-agent: Mutt/1.5.20 (2009-12-10)

On Fri, Nov 13, 2020 at 08:54:27PM +0100, Steffen Nurpmeso wrote:
> Bjarni Ingi Gislason wrote in
>  <20201113-180249.sv93188.62001@savannah.gnu.org>:
>  |URL:
>  |  <https://savannah.gnu.org/bugs/?59461>
>  ...
>  |locale -a | grep -F -q UTF-8 || exit 77 # skip
> 
> That will not do, at least not portably and if you care for older
> systems.  At minimum you must test utf8 and utf-8 here.  Better to
> conditionalize on "command -v locale" first, it may be missing as
> such (but forgot the details, i however do it like that).
> Maybe something like "grep -i -q 'utf-\{0,1\}8$'" or so.
> 

  Yes, I just changed the orignal test but kept the UTF-8,
so both versions will then fail.

  This test of mine is unnecessary,
and my next test version will drop it.

N.B.  The groff versions before 1.20 (year 2009) did not have the option
'-k'.

-- 
Bjarni I. Gislason



reply via email to

[Prev in Thread] Current Thread [Next in Thread]