summaryrefslogtreecommitdiff
path: root/textd
diff options
context:
space:
mode:
authorHaoran S. Diao (刁浩然) <0@hairydiode.xyz>2023-07-03 06:18:51 -0700
committerHaoran S. Diao (刁浩然) <0@hairydiode.xyz>2023-07-03 06:18:51 -0700
commit2dc0441394b05c26a9bf1abafd1edf1e7c26533d (patch)
treeeb0df55eb143cf6c933ce18082c975891cf94f2b /textd
parentf05aeceacab864d2f34b21074f501a00a0dcf8b8 (diff)
Made iconv arguments more cross platform(runs in termux with this change)main
Diffstat (limited to 'textd')
-rwxr-xr-xtextd2
1 files changed, 1 insertions, 1 deletions
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