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: Eli Zaretskii
Subject: Re: [Bug-wget] bad filenames (again)
Date: Wed, 19 Aug 2015 21:46:04 +0300

> Date: Wed, 19 Aug 2015 20:33:37 +0200
> From: "Andries E. Brouwer" <address@hidden>
> Cc: "Andries E. Brouwer" <address@hidden>, address@hidden,
>         address@hidden
> 
> On Wed, Aug 19, 2015 at 05:38:39PM +0300, Eli Zaretskii wrote:
> 
> > > Assign a character set as follows:
> > > - if the user specified a from-charset, use that
> > > - if the name is printable ASCII (in 0x20-0x7f), take ASCII
> > > - if the name is non-ASCII and valid UTF-8, take UTF-8
> > > - otherwise take Unknown.
> > 
> > I think this is simpler and produces the same results:
> >  - if the user specified a from-charset, use that
> >  - otherwise assume UTF-8
> 
> Simpler, but the results are not the same.
> 
> If the from-charset is unknown, then any call of iconv will certainly
> lead to bad results.

Not certainly, but it could be, yes.

> So there are only the two possibilities:
> (i) leave as-is (if that is the user's preference)
> (ii) make pure ASCII via hex escapes.

OK, but how is this different from what we'd get using your suggested
4 alternatives?



reply via email to

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