The script box.awk displays a frame around a text file. Some versions of awk (for example the one on macOS or BSD) do not return the correct length on UTF-8 string:
$ awk 'BEGIN {print length("hééé")}'
4
$ mawk 'BEGIN {print length("hééé")}'
7
When the text file contains non-ASCII characters, the right border isn't aligned properly. One way to deal with that could be to try using iconv (POSIX, but not installed everywhere by default) : UTF-8 -> ISO-something -> box -> UTF-8.
Doing that would make it possible to completely remove the box8.py script.
A similar thing could be used when the detected locale is not UTF-8.
The script
box.awkdisplays a frame around a text file. Some versions ofawk(for example the one on macOS or BSD) do not return the correct length on UTF-8 string:When the text file contains non-ASCII characters, the right border isn't aligned properly. One way to deal with that could be to try using
iconv(POSIX, but not installed everywhere by default) :UTF-8 -> ISO-something -> box -> UTF-8.Doing that would make it possible to completely remove the
box8.pyscript.A similar thing could be used when the detected locale is not UTF-8.