/*
- * "$Id: gziptoany.c 6378 2007-03-21 07:18:18Z mike $"
+ * "$Id: gziptoany.c 6649 2007-07-11 21:46:42Z mike $"
*
* GZIP/raw pre-filter for the Common UNIX Printing System (CUPS).
*
+ * Copyright 2007 by Apple Inc.
* Copyright 1993-2007 by Easy Software Products.
*
* These coded instructions, statements, and computer programs are the
- * property of Easy Software Products and are protected by Federal
- * copyright law. Distribution and use rights are outlined in the file
- * "LICENSE.txt" which should have been included with this file. If this
- * file is missing or damaged please contact Easy Software Products
- * at:
- *
- * Attn: CUPS Licensing Information
- * Easy Software Products
- * 44141 Airport View Drive, Suite 204
- * Hollywood, Maryland 20636 USA
- *
- * Voice: (301) 373-9600
- * EMail: cups-info@cups.org
- * WWW: http://www.cups.org
+ * property of Apple Inc. and are protected by Federal copyright
+ * law. Distribution and use rights are outlined in the file "LICENSE.txt"
+ * which should have been included with this file. If this file is
+ * file is missing or damaged, see the license at "http://www.cups.org/".
*
* This file is subject to the Apple OS-Developed Software exception.
*
#include <cups/file.h>
#include <cups/string.h>
+#include <cups/i18n.h>
#include <stdlib.h>
#include <errno.h>
if (argc != 7)
{
- fputs("ERROR: gziptoany job-id user title copies options file\n", stderr);
+ fprintf(stderr, _("Usage: %s job-id user title copies options file\n"),
+ argv[0]);
return (1);
}
if ((fp = cupsFileOpen(argv[6], "r")) == NULL)
{
- fprintf(stderr, "ERROR: Unable to open file \"%s\": %s\n", argv[6],
+ fprintf(stderr, _("ERROR: Unable to open file \"%s\": %s\n"), argv[6],
strerror(errno));
return (1);
}
while (copies > 0)
{
+ if (!getenv("FINAL_CONTENT_TYPE"))
+ fputs("PAGE: 1 1\n", stderr);
+
cupsFileRewind(fp);
while ((bytes = cupsFileRead(fp, buffer, sizeof(buffer))) > 0)
if (fwrite(buffer, 1, bytes, stdout) < bytes)
{
fprintf(stderr,
- "ERROR: Unable to write uncompressed document data: %s\n",
+ _("ERROR: Unable to write uncompressed document data: %s\n"),
strerror(ferror(stdout)));
cupsFileClose(fp);
/*
- * End of "$Id: gziptoany.c 6378 2007-03-21 07:18:18Z mike $".
+ * End of "$Id: gziptoany.c 6649 2007-07-11 21:46:42Z mike $".
*/