summaryrefslogtreecommitdiff
path: root/textd
diff options
context:
space:
mode:
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