From 2dc0441394b05c26a9bf1abafd1edf1e7c26533d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Haoran=20S=2E=20Diao=20=28=E5=88=81=E6=B5=A9=E7=84=B6=29?= <0@hairydiode.xyz> Date: Mon, 3 Jul 2023 06:18:51 -0700 Subject: Made iconv arguments more cross platform(runs in termux with this change) --- textd | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'textd') diff --git a/textd b/textd index b4f4683..4ac31d5 100755 --- a/textd +++ b/textd @@ -4,7 +4,7 @@ # reads from stdin, and displays all text vertically using fonts # in DIR # assumes unicode utf-8 input -codes=$(iconv -f utf8 -t utf32be | xxd -u -p -c 4) +codes=$(iconv -f UTF-8 -t UTF-32BE | xxd -u -p -c 4) #convert to decimal, must replace ' ' with ';' first dec=$(echo -n "ibase=16;$codes" | bc 2>/dev/null) #converts space/newline delimited string to array -- cgit v1.1