]> git.ipfire.org Git - thirdparty/cups.git/blobdiff - systemv/lpmove.c
Load cups into easysw/current.
[thirdparty/cups.git] / systemv / lpmove.c
index 27889fbd0bb87e3722975c8ee8e8f66f95c90924..a46efe0f65a3b0bf2fd472c57269b4664759eecf 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * "$Id: lpmove.c 4945 2006-01-18 21:41:17Z mike $"
+ * "$Id: lpmove.c 5925 2006-09-05 19:43:11Z mike $"
  *
  *   "lpmove" command for the Common UNIX Printing System (CUPS).
  *
@@ -66,6 +66,8 @@ main(int  argc,                               /* I - Number of command-line arguments */
                *dest;                  /* New destination */
 
 
+  _cupsSetLocale(argv);
+
   dest      = NULL;
   dests     = NULL;
   http      = NULL;
@@ -202,8 +204,8 @@ move_job(http_t     *http,          /* I - HTTP connection to server */
   }
   else
   {
-    httpAssembleURIf(job_uri, sizeof(job_uri), "ipp", NULL, "localhost", 0,
-                     "/printers/%s", src);
+    httpAssembleURIf(HTTP_URI_CODING_ALL, job_uri, sizeof(job_uri), "ipp", NULL,
+                     "localhost", 0, "/printers/%s", src);
     ippAddString(request, IPP_TAG_OPERATION, IPP_TAG_URI, "printer-uri", NULL,
                 job_uri);
   }
@@ -211,8 +213,8 @@ move_job(http_t     *http,          /* I - HTTP connection to server */
   ippAddString(request, IPP_TAG_OPERATION, IPP_TAG_NAME, "requesting-user-name",
                NULL, cupsUser());
 
-  httpAssembleURIf(printer_uri, sizeof(printer_uri), "ipp", NULL, "localhost", 0,
-                   "/printers/%s", dest);
+  httpAssembleURIf(HTTP_URI_CODING_ALL, printer_uri, sizeof(printer_uri),
+                   "ipp", NULL, "localhost", 0, "/printers/%s", dest);
   ippAddString(request, IPP_TAG_JOB, IPP_TAG_URI, "job-printer-uri",
                NULL, printer_uri);
 
@@ -233,5 +235,5 @@ move_job(http_t     *http,          /* I - HTTP connection to server */
 
 
 /*
- * End of "$Id: lpmove.c 4945 2006-01-18 21:41:17Z mike $".
+ * End of "$Id: lpmove.c 5925 2006-09-05 19:43:11Z mike $".
  */