summaryrefslogtreecommitdiff
path: root/src/htsparse.c
diff options
context:
space:
mode:
authorXavier Roche <xroche@users.noreply.github.com>2013-05-18 15:09:58 +0000
committerXavier Roche <xroche@users.noreply.github.com>2013-05-18 15:09:58 +0000
commitfd153cb28d1634276fd9c0c94393cfca09278a6b (patch)
tree7b063e7efc3cf51cab7430d8df5a534d2c1cac18 /src/htsparse.c
parent46b6d81f72c884ac521bd08e4ed6b2732f308ec5 (diff)
Fixed "Bogus charset on disk when filenames have non-ascii characters" (http://code.google.com/p/httrack/issues/detail?id=11)
Diffstat (limited to 'src/htsparse.c')
-rw-r--r--src/htsparse.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/htsparse.c b/src/htsparse.c
index 09367a0..1dd6e5f 100644
--- a/src/htsparse.c
+++ b/src/htsparse.c
@@ -4833,9 +4833,10 @@ int hts_wait_delayed(htsmoduleStruct * str, char *adr, char *fil, char *save,
if (!continue_loop) {
/* Recompute filename with MIME type */
save[0] = '\0';
- url_savename(adr, fil, save, former_adr, former_fil,
- liens[ptr]->adr, liens[ptr]->fil, opt, liens, lien_tot,
- sback, cache, hash, ptr, numero_passe, &delayed_back);
+ url_savename2(adr, fil, save, former_adr, former_fil,
+ liens[ptr]->adr, liens[ptr]->fil, opt, liens, lien_tot,
+ sback, cache, hash, ptr, numero_passe, &delayed_back,
+ str->page_charset_);
/* Recompute authorization with MIME type */
{