[Surfraw-devel] Bug#487430: surfraw: deblogs elvi munges package name
Micah Anderson
micah at debian.org
Sat Jun 21 19:12:15 UTC 2008
Package: surfraw
Version: 2.2.1-2
Severity: normal
If I issue the comman:
$ sr deblogs db4.2
the resulting URL that is constructed is:
http://changelogs.debian.net/db4%2E2
this results in an incorrect package name error from changelogs.debian.net:
The package name you provided, db4%2E2, does not seem to exist in the
Sources file (for main).
It seems like the elvi does some escaping on the package name, when it
puts the arguments into $escaped_args:
w3_browse_url "http://changelogs.debian.net/${escaped_args}"
The majority of the elvi use this $escaped_args mechanism, which I
think comes from w3_parse_args, which I think works its way around
to calling w3_url_escape, both in /usr/bin/sr, specifically the sed
operation on line 151:
s/\./%2E/g;
If I comment that out, the URL is generated properly. I'm not sure if
this is the right way to go about solving this problem, as the
escaping might serve a more important purpose, but if not, the simple
patch would be attached.
-- System Information:
Debian Release: lenny/sid
APT prefers unstable
APT policy: (500, 'unstable'), (500, 'stable')
Architecture: i386 (i686)
Kernel: Linux 2.6.24-1-686 (SMP w/2 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash
Versions of packages surfraw depends on:
ii elinks [www-browser] 0.11.3-8 advanced text-mode WWW browser
ii epiphany-gecko [www- 2.22.2-3 Intuitive GNOME web browser - Geck
ii galeon [www-browser] 2.0.4-1 GNOME web browser for advanced use
ii iceape-browser [www- 1.1.9-5 Iceape Navigator (Internet browser
ii iceweasel [www-brows 3.0~rc2-1 lightweight web browser based on M
ii konqueror [www-brows 4:3.5.9.dfsg.1-2+b1 KDE's advanced file manager, web b
ii lynx [www-browser] 2.8.6-2+b1 Text-mode WWW Browser
ii w3m [www-browser] 0.5.2-2 WWW browsable pager with excellent
Versions of packages surfraw recommends:
ii elinks 0.11.3-8 advanced text-mode WWW browser
ii surfraw-extra 2.2.1-2 extra surfraw elvi with heavy depe
ii w3m 0.5.2-2 WWW browsable pager with excellent
-- no debconf information
-------------- next part --------------
--- /usr/bin/sr 2008-06-21 15:09:49.000000000 -0400
+++ /tmp/sr.new 2008-06-21 15:10:03.000000000 -0400
@@ -148,7 +148,7 @@
s/\$/%24/g;
s/&/%26/g;
s/,/%2C/g;
- s/\./%2E/g;
+# s/\./%2E/g;
sx/x%2Fx;
s/:/%3A/g;
s/;/%3B/g;
More information about the Surfraw-devel
mailing list