[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: |
Steffen Nurpmeso |
Subject: |
Re: [bug #59461] smoke-test_html_device.sh: make the test more independent of locale |
Date: |
Fri, 13 Nov 2020 20:54:27 +0100 |
User-agent: |
s-nail v14.9.19-166-g98859ee6 |
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.
--steffen
|
|Der Kragenbaer, The moon bear,
|der holt sich munter he cheerfully and one by one
|einen nach dem anderen runter wa.ks himself off
|(By Robert Gernhardt)