Package: wikipedia2text Version: 0.10-2 Severity: important Tags: patch wikipedia2text does not work at all:
$ wikipedia2text -C Debian tr: misaligned [:upper:] and/or [:lower:] construct Attached patch fixes the issue. -- System Information: Debian Release: 5.0.2 APT prefers testing APT policy: (900, 'testing'), (500, 'jaunty-updates'), (500, 'jaunty-security'), (500, 'jaunty-backports'), (400, 'jaunty'), (300, 'unstable'), (100, 'experimental') Architecture: i386 (i686) Kernel: Linux 2.6.28-11-lpia (SMP w/1 CPU core) Locale: LANG=en_DK.UTF-8, LC_CTYPE=en_DK.UTF-8 (charmap=UTF-8) Shell: /bin/sh linked to /bin/dash Versions of packages wikipedia2text depends on: ii iceweasel [www-brows 3.0.11-1 lightweight web browser based on M ii liburi-perl 1.37+dfsg-1 Manipulates and accesses URI strin ii lynx-cur [www-browse 2.8.7pre1-1 Text-mode WWW Browser with NLS sup ii opera [www-browser] 10.00.4402.gcc4.qt3 The Opera Web Browser ii w3m [www-browser] 0.5.2-2+b1 WWW browsable pager with excellent Versions of packages wikipedia2text recommends: ii less 418-1 Pager program similar to more Versions of packages wikipedia2text suggests: ii w3m 0.5.2-2+b1 WWW browsable pager with excellent -- no debconf information -- ----------------------------------------------------------- | Radovan GarabĂk http://kassiopeia.juls.savba.sk/~garabik/ | | __..--^^^--..__ garabik @ kassiopeia.juls.savba.sk | ----------------------------------------------------------- Antivirus alert: file .signature infected by signature virus. Hi! I'm a signature virus! Copy me into your signature file to help me spread!
--- /usr/bin/wikipedia2text.orig 2009-03-23 13:13:37.000000000 +0100 +++ /usr/bin/wikipedia2text 2009-07-20 23:15:28.000000000 +0200 @@ -367,7 +367,7 @@ # Now we do some input sanitizing. ARGUMENT="$(uri_decode "$*")" -LOCAL="$(echo "${LOCAL}"|tr [:upper:] [:lower:])" +LOCAL="$(echo "${LOCAL}"|tr '[:upper:]' '[:lower:]')" # Random page? if [ "${RAND}" = "true" ]; then ARGUMENT="$(uri_decode "${RANDOMP}")"