Skip to content

Commit

Permalink
Merge pull request #3418 from masatake/cygwin--iconv-io-error
Browse files Browse the repository at this point in the history
tmain: suppress the error message reported when running "iconv -l"
  • Loading branch information
masatake committed Jun 26, 2022
2 parents cbdc5c4 + a00ac95 commit 7c12820
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Tmain/utils.sh
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,7 @@ direq_maybe ()

check_encoding()
{
if iconv -l | grep -qi "$1"; then
if iconv -l 2> /dev/null | grep -qi "$1"; then
return 0
fi
skip "iconv doesn't know about the encoding: $1"
Expand Down

0 comments on commit 7c12820

Please sign in to comment.