]> sjero.net Git - wget/commitdiff
More quoting.
authorMicah Cowan <micah@cowan.name>
Thu, 2 Jul 2009 08:04:11 +0000 (01:04 -0700)
committerMicah Cowan <micah@cowan.name>
Thu, 2 Jul 2009 08:04:11 +0000 (01:04 -0700)
src/ChangeLog
src/html-url.c
src/recur.c

index fca73ac22648be0fc787acafeac14540da9edbb5..d3e68f1a04d2f79efc65a9d8cb9d501069cd050a 100644 (file)
@@ -1,3 +1,10 @@
+2009-07-02  Micah Cowan  <micah@cowan.name>
+
+       * recur.c (url_enqueue): Quote enqueue/dequeue debug messages.
+
+       * html-url.c (append_url): Change "merge()" quoting style from
+       locale_quoting_style to escape_quoting_style.
+
 2009-07-01  Micah Cowan  <micah@cowan.name>
 
        * retr.c (retrieve_url): Use the existing "redirect" label,
 2009-07-01  Micah Cowan  <micah@cowan.name>
 
        * retr.c (retrieve_url): Use the existing "redirect" label,
index c6e758f8e0ad495a83e255065cd06a7166b0e2f4..68a8bc3c7a132d8f56b540dff72235f39845a9b0 100644 (file)
@@ -305,10 +305,10 @@ append_url (const char *link_uri, int position, int size,
       char *complete_uri = uri_merge (base, link_uri);
 
       DEBUGP (("%s: merge(%s, %s) -> %s\n",
       char *complete_uri = uri_merge (base, link_uri);
 
       DEBUGP (("%s: merge(%s, %s) -> %s\n",
-               quotearg_n_style (0, locale_quoting_style, ctx->document_file),
+               quotearg_n_style (0, escape_quoting_style, ctx->document_file),
                quote_n (1, base),
                quote_n (2, link_uri),
                quote_n (1, base),
                quote_n (2, link_uri),
-               quotearg_n_style (3, locale_quoting_style, complete_uri)));
+               quotearg_n_style (3, escape_quoting_style, complete_uri)));
 
       url = url_parse (complete_uri, NULL, NULL, false);
       if (!url)
 
       url = url_parse (complete_uri, NULL, NULL, false);
       if (!url)
index b0042dff1a2ec077710e8ead0ae8748624595794..4e95e86915104d80fb018e2b636a5faab8dfd36e 100644 (file)
@@ -111,7 +111,8 @@ url_enqueue (struct url_queue *queue, struct iri *i,
   if (queue->count > queue->maxcount)
     queue->maxcount = queue->count;
 
   if (queue->count > queue->maxcount)
     queue->maxcount = queue->count;
 
-  DEBUGP (("Enqueuing %s at depth %d\n", url, depth));
+  DEBUGP (("Enqueuing %s at depth %d\n",
+           quotearg_n_style (0, escape_quoting_style, url), depth));
   DEBUGP (("Queue count %d, maxcount %d.\n", queue->count, queue->maxcount));
 
   if (i)
   DEBUGP (("Queue count %d, maxcount %d.\n", queue->count, queue->maxcount));
 
   if (i)
@@ -152,7 +153,8 @@ url_dequeue (struct url_queue *queue, struct iri **i,
 
   --queue->count;
 
 
   --queue->count;
 
-  DEBUGP (("Dequeuing %s at depth %d\n", qel->url, qel->depth));
+  DEBUGP (("Dequeuing %s at depth %d\n",
+           quotearg_n_style (0, escape_quoting_style, qel->url), qel->depth));
   DEBUGP (("Queue count %d, maxcount %d.\n", queue->count, queue->maxcount));
 
   xfree (qel);
   DEBUGP (("Queue count %d, maxcount %d.\n", queue->count, queue->maxcount));
 
   xfree (qel);