[PATCH -perfbook 2/6] runlatex.sh: "iconv -l" rather than "iconv --list"

Akira Yokosawa <[email protected]> Thu, 4 Jun 2026 19:14:07 +0900
Newsgroups org.kernel.vger.perfbook
Message-ID <[email protected]>
"--list" option may not be recognized by non-GNU "iconv".
Use "-l", which should be portable (POSIX).

Signed-off-by: Akira Yokosawa <[email protected]>
Fixes: 6e2558c71bb6 ("Cope with iconv without ISO~8859-1 support")
---
 utilities/runfirstlatex.sh | 2 +-
 utilities/runlatex.sh      | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/utilities/runfirstlatex.sh b/utilities/runfirstlatex.sh
index 269a3b62..6e477184 100644
--- a/utilities/runfirstlatex.sh
+++ b/utilities/runfirstlatex.sh
@@ -70,7 +70,7 @@ basename=`echo $1 | sed -e 's/\.tex$//'`
 : ${LATEX:=pdflatex}
 : ${WARNEXIT:=1}
 
-if iconv --list | grep -q -i iso-8859-1
+if iconv -l | grep -q -i iso-8859-1
 then
 	ICONV="iconv -f ISO-8859-1 -t UTF-8"
 else
diff --git a/utilities/runlatex.sh b/utilities/runlatex.sh
index 50aec2f9..9a060897 100644
--- a/utilities/runlatex.sh
+++ b/utilities/runlatex.sh
@@ -34,7 +34,7 @@
 
 WARN_REMAIN=0
 
-if iconv --list | grep -q -i iso-8859-1
+if iconv -l | grep -q -i iso-8859-1
 then
 	ICONV="iconv -f ISO-8859-1 -t UTF-8"
 else
-- 
2.43.0