Package: libgettext-ruby1.9 Version: 1.93.0-1 Severity: serious Justification: renders package unusable Blocks: 432200 Tags: patch
I'm working on developing a new version of apt-listbugs that works with ruby1.9. Currently I've got everything resolved, except for this error: bash jade master apt-listbugs $ ruby1.9 ./apt-listbugs /usr/lib/ruby/1.9.0/gettext/mo.rb:18:in `require': /usr/lib/ruby/1.9.0/gettext/iconv.rb:102: invalid multibyte char (US-ASCII) (SyntaxError) /usr/lib/ruby/1.9.0/gettext/iconv.rb:102: invalid multibyte char (US-ASCII) /usr/lib/ruby/1.9.0/gettext/iconv.rb:102: syntax error, unexpected $end, expecting ')' puts Iconv.iconv("EUC-JP", "UTF-8", "ほげ").join ^ from /usr/lib/ruby/1.9.0/gettext/mo.rb:18:in `<top (required)>' from /usr/lib/ruby/1.9.0/gettext.rb:18:in `require' from /usr/lib/ruby/1.9.0/gettext.rb:18:in `<top (required)>' from ./apt-listbugs:240:in `require' from ./apt-listbugs:240:in `<main>' bash jade master apt-listbugs $ This is caused by a bug in /usr/lib/ruby/1.9.0/gettext/iconv.rb Ruby1.9 is trying to parse it as ASCII, however it contains UTF-8 characters. to tell ruby1.9 to parse it as utf-8, add this comment to the file "# coding: utf-8". After adding this to the beginning, it parses just fine, and apt-listbugs starts just fine (but fails later for other reasons, unrelated to gettext..). attached is a patch, please upload the fix for this bug. -- _________________________ Ryan Niebur ryanrya...@gmail.com
diff -u libgettext-ruby-1.93.0/debian/changelog libgettext-ruby-1.93.0/debian/changelog only in patch2: unchanged: --- libgettext-ruby-1.93.0.orig/lib/gettext/iconv.rb +++ libgettext-ruby-1.93.0/lib/gettext/iconv.rb @@ -1,3 +1,5 @@ +# coding: utf-8 + =begin iconv.rb - Pseudo Iconv class. Supports Iconv.iconv, Iconv.conv.
signature.asc
Description: Digital signature