For what it’s worth, ‘fold’ from Busybox handles UTF-8 correctly:

+$ busybox fold -w 10 << EOF
+> 1234567890123456789012
+> Мы не рабы, рабы немы.
+> EOF
1234567890
1234567890
12
Мы не рабы
, рабы нем
ы.

+$ busybox fold -w 10 -s << EOF
+> Мы не рабы, рабы немы.
+> EOF
Мы не
рабы,
рабы немы.

(While in Coreutils the bug is still present.)


--
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org

Reply via email to