From d4d945bcd323b6956bbe8b02751f7f6941823dd5 Mon Sep 17 00:00:00 2001 From: giraffedata Date: Fri, 6 Oct 2023 20:56:08 +0000 Subject: miscellaneous test updates git-svn-id: http://svn.code.sf.net/p/netpbm/code/trunk@4727 9d0c8265-081b-0410-96cb-a4ca84ce46f8 --- test/pbmtext-utf8.test | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'test/pbmtext-utf8.test') diff --git a/test/pbmtext-utf8.test b/test/pbmtext-utf8.test index a10b3d33..551cfe29 100755 --- a/test/pbmtext-utf8.test +++ b/test/pbmtext-utf8.test @@ -20,14 +20,14 @@ tmpdir=${tmpdir:-/tmp} utf_locale_list=${tmpdir}/utf_locale_list locale_to_test="en_US.utf8" # Initial value; this -# does not have to be present in following list -# Edit the above value if necessary +# does not have to be actually available. +# Edit the above value if you have a preferred locale. -# Make a list of available locales which end in "utf8" +# Make a list of available locales which end in "utf8" etc. # If none are found, abort test -locale -a | grep "\.utf8$" > ${utf_locale_list} ||\ - locale_to_test="" +locale -a | grep -e "\.utf8$" -e "\.utf-8$" -e "\.UTF-8$" \ + > ${utf_locale_list} || locale_to_test="" # Hunt for a valid utf8 locale # Submit each candidate to a trial pbmtext run until one that works is -- cgit 1.4.1