Damyan, your patch does work very well for cases like:
./cowsay "MÖÖÖ"
 ______
< MÖÖÖ >
 ------

For other cases it does not work correctly for me. I have
LANG=en_DK.UTF-8 and while 3.03-9.2 in a GNOME Terminal
2.26.2 prints:

$ /usr/games/cowsay "我愛中國人"
 _________________
< 我愛中國人 >
 -----------------

Your patch changes the output to:
$ ./cowsay "我愛中國人"
 _______
< 我愛中國人 >
 -------

Which doesn't look right neither. The number of line characters
(7 instead of 17) seems to be correct, but the Chinese characters
are displayed wider, so one would need ~11 line characters.




--
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