[DRE-maint] Bug#705799: lolcat: chokes upon invalid utf-u
Sebastian Bremicker
local at sebrem.de
Sat Apr 20 07:57:35 UTC 2013
Package: lolcat
Version: 42.0.99-1
Severity: normal
Hi,
lolcatting a file containing an invalid utf-8 character when it's not
expected, like in
Helenenstraße 22
(I'll try to attach the file for testing)
leads to an exception:
/usr/lib/ruby/vendor_ruby/lolcat/lol.rb:45:in `gsub!': invalid byte sequence
/in UTF-8 (ArgumentError)
from /usr/lib/ruby/vendor_ruby/lolcat/lol.rb:45:in `println'
from /usr/lib/ruby/vendor_ruby/lolcat/lol.rb:36:in `block in cat'
from /usr/lib/ruby/vendor_ruby/lolcat/lol.rb:34:in `each'
from /usr/lib/ruby/vendor_ruby/lolcat/lol.rb:34:in `cat'
from /usr/lib/ruby/vendor_ruby/lolcat/cat.rb:113:in `block in cat!'
from /usr/lib/ruby/vendor_ruby/lolcat/cat.rb:107:in `each'
from /usr/lib/ruby/vendor_ruby/lolcat/cat.rb:107:in `cat!'
from /usr/games/lolcat:24:in `<main>'
-- System Information:
Debian Release: 7.0
APT prefers proposed-updates
APT policy: (500, 'proposed-updates'), (500, 'unstable'), (1, 'experimental')
Architecture: amd64 (x86_64)
Foreign Architectures: i386
Kernel: Linux 3.8-trunk-amd64 (SMP w/2 CPU cores)
Locale: LANG=de_DE.UTF-8, LC_CTYPE=de_DE.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Versions of packages lolcat depends on:
ii ruby 1:1.9.3
ii ruby-paint 0.8.5-1
ii ruby-trollop 1.16.2-3
ii ruby1.8 [ruby-interpreter] 1.8.7.358-7
ii ruby1.9.1 [ruby-interpreter] 1.9.3.194-8.1
lolcat recommends no packages.
lolcat suggests no packages.
-- no debconf information
-------------- next part --------------
HelenenstraÃe 22
More information about the Pkg-ruby-extras-maintainers
mailing list