bug-wget
[Top][All Lists]
Advanced

[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: Tue, 18 Aug 2015 17:56:30 +0200
User-agent: Mutt/1.5.21 (2010-09-15)

On Tue, Aug 18, 2015 at 06:22:41PM +0300, Eli Zaretskii wrote:

> > It is debatable what precisely would be the right thing,
> > but my patch greatly increases the number of happy users.
> 
> AFAIU, it does that only when the target locale is UTF-8.
> By using iconv we can make wget DTRT in more locales.

No, because wget, and the invoker of wget, does not know
the remote character set. And there need not be one.
A Chinese site often has a mixture of material in
Traditional Chinese and Simplified Chinese.
Any conversion would just make the stuff unreadable. 

> > For example, nothing was changed yet for Windows, but also
> > Windows users complain about this wget escaping.
> 
> If we convert the file names using iconv, Windows users will also be
> happier, at least when the remote URL can be encoded in their system
> codepage.

Windows does not differ from Unix - since the remote character set
is unknown and not necessarily constant, a conversion is impossible.
I already indicated the 1-line change that fixes the Windows problems.

Andries



reply via email to

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