]> git.ipfire.org Git - thirdparty/cups.git/blobdiff - systemv/lpstat.c
Load cups into easysw/current.
[thirdparty/cups.git] / systemv / lpstat.c
index 731625edae4f5dcea1dace64fffc9d240dd9068a..4eafb58c475978e3bfec70074ba2ada5925abd7a 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * "$Id: lpstat.c 5529 2006-05-15 20:06:46Z mike $"
+ * "$Id: lpstat.c 5833 2006-08-16 20:05:58Z mike $"
  *
  *   "lpstat" command for the Common UNIX Printing System (CUPS).
  *
@@ -70,26 +70,26 @@ static void show_scheduler(http_t *);
  */
 
 int
-main(int  argc,                        /* I - Number of command-line arguments */
-     char *argv[])             /* I - Command-line arguments */
+main(int  argc,                                /* I - Number of command-line arguments */
+     char *argv[])                     /* I - Command-line arguments */
 {
-  int          i,              /* Looping var */
-               status;         /* Exit status */
-  http_t       *http;          /* Connection to server */
-  int          num_dests;      /* Number of user destinations */
-  cups_dest_t  *dests;         /* User destinations */
-  int          long_status;    /* Long status report? */
-  int          ranking;        /* Show job ranking? */
-  const char   *which;         /* Which jobs to show? */
-  char         op;             /* Last operation on command-line */
+  int          i,                      /* Looping var */
+               status;                 /* Exit status */
+  http_t       *http;                  /* Connection to server */
+  int          num_dests;              /* Number of user destinations */
+  cups_dest_t  *dests;                 /* User destinations */
+  int          long_status;            /* Long status report? */
+  int          ranking;                /* Show job ranking? */
+  const char   *which;                 /* Which jobs to show? */
+  char         op;                     /* Last operation on command-line */
 
 
+  _cupsSetLocale();
+
  /*
-  * Set the locale so that times, etc. are displayed properly.
+  * Parse command-line options...
   */
 
-  setlocale(LC_ALL, "");
-
   http        = NULL;
   num_dests   = 0;
   dests       = NULL;
@@ -2248,5 +2248,5 @@ show_scheduler(http_t *http)      /* I - HTTP connection to server */
 
 
 /*
- * End of "$Id: lpstat.c 5529 2006-05-15 20:06:46Z mike $".
+ * End of "$Id: lpstat.c 5833 2006-08-16 20:05:58Z mike $".
  */