| |
|
|
|
cURL Mailing List Monthly Index Single Mail
curl-users Mailing List Archives
Re: patch to enhance --progress-bar
From: Dan Fandrich <dan_at_coneharvesters.com>
Date: Sun, 23 Nov 2008 09:38:14 -0800
On Sun, Nov 23, 2008 at 01:59:19PM +0100, Björn Schlögl wrote:
Sounds like a good idea--the user can be give a bit of information to look
> + int length = strlen(config->progress_prefix);
There's a minor problem in this line in that in multibyte locales (like UTF-8)
> + snprintf( format, sizeof(format), "%%s%%-%ds %%5.1f%%%%", barwidth );
This is a bit odd, too. I know it's just a cut and paste of the original code,
snprintf( outline, sizeof(outline), "%s%-*s %5.1f%%",
The * syntax seems to be pretty portable, although I haven't verified that
>>> Dan
-- http://www.MoveAnnouncer.com The web change of address service Let webmasters know that your web site has moved
-------------------------------------------------------------------
These mail archives are generated by hypermail. |
Page updated November 12, 2010.
web site info