Hi, Maeda-san. Thank you for your cooperation. I ask nishiyama-san as upstream author this issue.
Upstream author should know this issue. Best Yukiharu On Sat, 24 Oct 2009 10:48:12 +0900 Kouhei Maeda <mkou...@gmail.com> wrote: > Package: td2planet > Version: 0.1.0-2 > Severity: normal > > Hi, Yabuki-san. > > When there is multibyte strings in HTML Anchor of RSS Feed, > td2planet failed in prosess URI.parse. > > example, > > /usr/lib/ruby/1.8/uri/common.rb:436:in `split': bad URI(is not URI?): > http://satoshi.blogs.com/life/2009/10/restful-mvc__ > ____‚_____ƒ¼__‚ __ƒ_____‚____ƒ > __ƒ_____ ________.html (URI::InvalidURIError) > from /usr/lib/ruby/1.8/uri/common.rb:485:in `parse' from > /usr/lib/ruby/1.8/td2planet/formatter.rb:123:in > `relative_path_to_absolute_uri' > from /usr/lib/ruby/1.8/td2planet/formatter.rb:133:in > `tag_attr_relative_path_to_absolute_uri' > from /usr/lib/ruby/1.8/td2planet/formatter.rb:132:in `gsub!' > from /usr/lib/ruby/1.8/td2planet/formatter.rb:132:in > `tag_attr_relative_path_to_absolute_uri' > from /usr/lib/ruby/1.8/td2planet/formatter.rb:143:in `to_section_body' > from /usr/lib/ruby/1.8/td2planet/formatter.rb:142:in `gsub' > from /usr/lib/ruby/1.8/td2planet/formatter.rb:142:in `to_section_body' > from /usr/share/td2planet/templates/section.rhtml:3:in `section' > from /usr/share/td2planet/templates/day.rhtml:18:in `day' > from /usr/share/td2planet/templates/day.rhtml:17:in `each' > from /usr/share/td2planet/templates/day.rhtml:17:in `day' > from /usr/share/td2planet/templates/layout.rhtml:24:in `layout' > from /usr/share/td2planet/templates/layout.rhtml:23:in `each' > from /usr/share/td2planet/templates/layout.rhtml:23:in `layout' > from /usr/lib/ruby/1.8/td2planet/formatter.rb:119:in `to_html' > from /usr/lib/ruby/1.8/td2planet/writer.rb:29:in `output_html' > from /usr/lib/ruby/1.8/pathname.rb:798:in `open' > from /usr/lib/ruby/1.8/pathname.rb:798:in `open' > from /usr/lib/ruby/1.8/td2planet/writer.rb:28:in `output_html' > from /usr/lib/ruby/1.8/td2planet/runner.rb:56:in `run' > from /usr/lib/ruby/1.8/td2planet/runner.rb:30:in `main' > from /usr/lib/ruby/1.8/td2planet/runner.rb:28:in `each' > from /usr/lib/ruby/1.8/td2planet/runner.rb:28:in `main' > from /usr/bin/td2planet:10 > > I make a patch, please fix this problem. > > diff --git a/td2planet-0.1.0/lib/td2planet/formatter.rb > b/td2planet-0.1.0/lib/td > 2planet/formatter.rb > index 221d584..ff2b2db 100644 > --- a/td2planet-0.1.0/lib/td2planet/formatter.rb > +++ b/td2planet-0.1.0/lib/td2planet/formatter.rb > @@ -120,7 +120,7 @@ module TD2Planet > end > > def relative_path_to_absolute_uri(attr_value, base_uri) > - uri = URI.parse(attr_value) > + uri = URI.parse(URI.escape(attr_value)) > if uri.scheme.nil? > URI.parse(base_uri) + uri > else > > > p.s. > This problem is not fixed in squeeze/sid. > > -- System Information: > Debian Release: 5.0.3 > APT prefers stable > APT policy: (500, 'stable') > Architecture: powerpc (ppc) > > Kernel: Linux 2.6.16 > Locale: LANG=C, LC_CTYPE=C (charmap=ANSI_X3.4-1968) > Shell: /bin/sh linked to /bin/bash > > Versions of packages td2planet depends on: > ii ruby1.8 1.8.7.72-3lenny1 Interpreter of object-oriented > scr > > Versions of packages td2planet recommends: > ii tdiary-theme 2.2.1-1 Themes of tDiary to change the > des > > td2planet suggests no packages. > > -- no debconf information > > > -- ====+====+====+====+====+====+====+====+====+====+====+====+====+====+ Yukiharu Yabuki (矢吹幸治) I use Debian GNU/Linux mail: yab...@netfort.gr.jp クレクレタコラは好き / クレクレタコだはイヤ ====+====+====+====+====+====+====+====+====+====+====+====+====+====+ -- To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org