Package: cowsay
Version: 3.03+dfsg1-10
Severity: minor
hi,
Usually, the cowsay bahaves fine with 8bit char, e.g.
```
$ cowsay debian
________ <- issue will emerge at this line
< debian >
-------- <- this line too
\ ^__^
\ (oo)\_______
(__)\ )\/\
||----w |
|| ||
```
But when pass a widechar string to cowsay, the length of top bar and
bottom bar of that message bubble would be not good.
the length of both bar is ($CHAR_NUMBER + 2), and
when use widechar, it's still ($WCHAR_NUMBER + 2),
while one widechar occupies 1 more places than 8bit char does.
such as
```
_____ <- '_' * (2+3), it should be (2 + 3*2) when use wchar.
< 谢谢你 >
----- <- ditto
```
and, the longer the wchar string is, the more clear the issue is.
thanks.
--
Regards,
C.D.Luminate
--
To UNSUBSCRIBE, email to [email protected]
with a subject of "unsubscribe". Trouble? Contact [email protected]