On Tue, Jul 21, 2009 at 04:45:17AM +0200, Axel Beckert wrote:
> Hi,
>
> On Mon, Jul 20, 2009 at 11:29:14PM +0200, Radovan Garabik wrote:
> > 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
>
> Hmmm, I notice other minor issues with the automatic browser choice,
> but I can't reproduce this issue currently on neither Debian Lenny nor
> Sid.
>
> Especially doesn't the line (which has been patched by you) give any
> error for me in neither bash nor dash (only in zsh, but that's a
> syntax error before tr gets called and not relevant anyway).
>
> LOCAL="$(echo "${LOCAL}"|tr [:upper:] [:lower:])"
>
Sorry for not investigating it further yesterday, it was already too
late and I was looking forward to the bed :-)
The culprit is shell expansion: as long as your current working
directory contains a file with one-letter name (one of ':uperlow'), shell
will expand the expression to that (one letter long) name.
I had a file named 'p' in my ~/
Actually, there is still another (minor) bug present: tr seems not to work with
multibyte characters, so as long as your locale is UTF-8, it will fail
to convert non-ASCII characters.
I guess you do not need any of the information you asked anymore...
Best,
--
-----------------------------------------------------------
| 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!
--
To UNSUBSCRIBE, email to [email protected]
with a subject of "unsubscribe". Trouble? Contact [email protected]