Comment 8 for bug 393212

Revision history for this message
In , Martin (debacle) wrote : Patch does not work correctly

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.