bug-wget
[Top][All Lists]
Advanced

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

Re: [Bug-wget] patch: Improve the rolling file name length for downloadi


From: Tim Ruehsen
Subject: Re: [Bug-wget] patch: Improve the rolling file name length for downloading progress image when without NLS
Date: Thu, 16 Feb 2017 14:48:55 +0100
User-agent: KMail/5.2.3 (Linux/4.9.0-1-amd64; KDE/5.28.0; x86_64; ; )

On Thursday, February 16, 2017 9:19:26 PM CET YX Hao wrote:
> Hi Guys,
> 
> The algorithm to locate the string sequence, which is for scrolling long
> file name in the downloading progress animation, is hard ;p
> 
> The only problem is the 'cols_to_bytes' function for no NLS feature, which
> returns wrong bytes number should be copied! I guess.
> 
> Will some body take a review for my patch in previous email?
> 
> Windows platform users can download a same problem executable file from
> https://eternallybored.org/misc/wget/ .
> You will see the right to the file name's last character part, that won't be
> updated when the file name is scrolling. And, the last character will be
> reproduced progressively on the screen :(

I would like to get rid of USE_NLS_PROGRESS_BAR.
It is a shortcut for
        HAVE_WCWIDTH && HAVE_MBTOWC

gnulib provides us with these functions on systems, where they don't exist in 
the standard C library.

For a quick check, could you unconditionally set USE_NLS_PROGRESS_BARin wget.h 
(lines 78 and 80-83 should be commented), recompile wget and report if it 
works for you ?

Regards, Tim

Attachment: signature.asc
Description: This is a digitally signed message part.


reply via email to

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