Package: cowsay Version: 3.03-9 Followup-For: Bug #254557
I noticed, that the lenght of the message is calculated erroneously if the message contains two-byte symbols from UTF-8 encoding.
This leads, in particular, to broken balloons for such strings.
For example: $ cowsay Hello, world ______________ < Hello, world > -------------- \ ^__^ \ (oo)\_______ (__)\ )\/\ ||----w | || || $ cowsay 'Привет, мир!' _______________________ < Привет, мир! > ----------------------- \ ^__^ \ (oo)\_______ (__)\ )\/\ ||----w | || ||
-- System Information: Debian Release: lenny/sid APT prefers testing APT policy: (990, 'testing'), (990, 'stable'), (500, 'unstable') Architecture: i386 (i686)
Kernel: Linux 2.6.22-2-686 (SMP w/1 CPU core) Locale: LANG=ru_RU.UTF-8, LC_CTYPE=ru_RU.UTF-8 (charmap=UTF-8) Shell: /bin/sh linked to /bin/bash
Versions of packages cowsay depends on: ii perl 5.8.8-11.1 Larry Wall's Practical Extraction
cowsay recommends no packages.
-- no debconf information
Package: cowsay
Version: 3.03-9
Followup-For: Bug #254557
I noticed, that the lenght of the message is calculated erroneously
if the message contains two-byte symbols from UTF-8 encoding.
This leads, in particular, to broken balloons for such strings.
For example:
||--- -w | _______ _______ ___ ------- ------- ---
||--- -w |
$ cowsay Hello, world
______________
< Hello, world >
--------------
\ ^__^
\ (oo)\_______
(__)\ )\/\
|| ||
$ cowsay 'Привет, мир!'
______
< Привет, мир! >
------
\ ^__^
\ (oo)\_______
(__)\ )\/\
|| ||
-- System Information:
Debian Release: lenny/sid
APT prefers testing
APT policy: (990, 'testing'), (990, 'stable'), (500, 'unstable')
Architecture: i386 (i686)
Kernel: Linux 2.6.22-2-686 (SMP w/1 CPU core) ru_RU.UTF- 8 (charmap=UTF-8)
Locale: LANG=ru_RU.UTF-8, LC_CTYPE=
Shell: /bin/sh linked to /bin/bash
Versions of packages cowsay depends on:
ii perl 5.8.8-11.1 Larry Wall's Practical Extraction
cowsay recommends no packages.
-- no debconf information