[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Bug-wget] bad filenames (again)

From: Andries E. Brouwer
Subject: Re: [Bug-wget] bad filenames (again)
Date: Fri, 21 Aug 2015 02:08:43 +0200
User-agent: Mutt/1.5.21 (2010-09-15)

On Thu, Aug 20, 2015 at 10:47:35AM +0200, Tim Ruehsen wrote:

> Basically, I keep track of the charset of each URL input
> (command line, input file, stdin, downloaded+scanned).

It seems to me, you can't. Consider for example a command line
that gives a URL hex escaped. Now the command line is pure ASCII
and gives no information at all about the character set of the filename.

> So when generating the filename we have the 
> to and from charset. When iconv fails here
> (e.g. Chinese input, ASCII output), escaping takes place.

The problem is not so much iconv failing as iconv succeeding
and producing garbage.


reply via email to

[Prev in Thread] Current Thread [Next in Thread]