bug-wget
[Top][All Lists]
Advanced

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

Re: [Bug-wget] [PATCH] Adjust_extension appends an extra .html to .htm


From: Giuseppe Scrivano
Subject: Re: [Bug-wget] [PATCH] Adjust_extension appends an extra .html to .htm
Date: Tue, 20 Mar 2012 22:41:29 +0100
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/23.3 (gnu/linux)

AIDA Shinra <address@hidden> writes:

> --- wget-1.13.4/src/http.c.orig       2011-09-07 10:58:01.000000000 +0000
> +++ wget-1.13.4/src/http.c    2012-03-19 13:58:29.000000000 +0000
> @@ -3517,7 +3517,7 @@
>    char *last_period_in_local_filename = strrchr (hs->local_file, '.');
>    char shortext[8];
>    int len = strlen (ext);
> -  if (len == 5)
> +  if (len == 4)

I am not sure the patch is correct.  `ext' includes the dot '.'
character so 5 seems ok there.  In any case, I wasn't able to reproduce
the problem, at least in my locale.  What locale are you using?  Can you
please provide a test case?

Thanks,
Giuseppe




reply via email to

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