Re: [MOD] STR #4273: cupsfilter does not set "CHARSET=utf-8" into environment of texttops
Michael Sweet <[email protected]> Tue, 19 Feb 2013 15:33:30 -0800 (PST)
| Newsgroups | gmane.comp.printing.cups.bugs |
|---|---|
| Message-ID | <[email protected]> |
--PART-BOUNDARY
Content-Type: text/plain
DO NOT REPLY TO THIS MESSAGE. INSTEAD, POST ANY RESPONSES TO THE LINK BELOW.
[STR Closed w/Resolution]
Fixed in Subversion repository.
Link: https://www.cups.org/str.php?L4273
Version: 1.4.3
Fix Version: 1.7-current (r10866)
--PART-BOUNDARY
Content-Type: text/plain
Content-Disposition: attachment; filename="str4273.patch"
Index: scheduler/cupsfilter.c
===================================================================
--- scheduler/cupsfilter.c (revision 10865)
+++ scheduler/cupsfilter.c (working copy)
@@ -3,7 +3,7 @@
*
* Filtering program for CUPS.
*
- * Copyright 2007-2012 by Apple Inc.
+ * Copyright 2007-2013 by Apple Inc.
* Copyright 1997-2006 by Easy Software Products, all rights reserved.
*
* These coded instructions, statements, and computer programs are the
@@ -917,7 +917,7 @@
{
int i; /* Looping var */
const char *argv[8], /* Command-line arguments */
- *envp[15], /* Environment variables */
+ *envp[16], /* Environment variables */
*temp; /* Temporary string */
char *optstr, /* Filter options */
content_type[1024], /* CONTENT_TYPE */
@@ -1040,7 +1040,8 @@
envp[11] = printer_name;
envp[12] = rip_max_cache;
envp[13] = userenv;
- envp[14] = NULL;
+ envp[14] = "CHARSET=utf-8";
+ envp[15] = NULL;
for (i = 0; argv[i]; i ++)
fprintf(stderr, "DEBUG: argv[%d]=\"%s\"\n", i, argv[i]);
--PART-BOUNDARY
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline
_______________________________________________
cups-bugs mailing list
[email protected]
http://lists.easysw.com/mailman/listinfo/cups-bugs
--PART-BOUNDARY--