diff options
author | Haoran S. Diao (刁浩然) <0@hairydiode.xyz> | 2023-07-03 06:18:51 -0700 |
---|---|---|
committer | Haoran S. Diao (刁浩然) <0@hairydiode.xyz> | 2023-07-03 06:18:51 -0700 |
commit | 2dc0441394b05c26a9bf1abafd1edf1e7c26533d (patch) | |
tree | eb0df55eb143cf6c933ce18082c975891cf94f2b /textd | |
parent | f05aeceacab864d2f34b21074f501a00a0dcf8b8 (diff) |
Made iconv arguments more cross platform(runs in termux with this change)main
Diffstat (limited to 'textd')
-rwxr-xr-x | textd | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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 |