Fix incorrect padding with unicode block charS
This commit is contained in:
parent
9a40ded878
commit
7186bd31e7
2
fetch
2
fetch
|
@ -1204,7 +1204,7 @@ getshuffle () {
|
||||||
|
|
||||||
getascii () {
|
getascii () {
|
||||||
# Get length of longest line
|
# Get length of longest line
|
||||||
length="$(wc -L 2>/dev/null < "$ascii")"
|
length="$(LC_ALL="en_US.UTF8" wc -L 2>/dev/null < "$ascii")"
|
||||||
|
|
||||||
# Fallback to using awk on systems without 'wc -L'
|
# Fallback to using awk on systems without 'wc -L'
|
||||||
[ -z "$length" ] && \
|
[ -z "$length" ] && \
|
||||||
|
|
Reference in New Issue