[cups.bugs] [HIGH] STR #4273: cupsfilter does not set "CHARSET=utf-8" into environment of texttops

Matthias Apitz guru at unixarea.de
Mon Feb 11 09:47:15 PST 2013


DO NOT REPLY TO THIS MESSAGE.  INSTEAD, POST ANY RESPONSES TO THE LINK BELOW.

[STR New]

For rendering UTF-8 coded text files to Postscript, texttops need an
environment value of "CHARSET=utf-8" (to pickup the correct Fonts for the
UTF-8 codepoints based on the file charsets/utf-8); cupsfilter does not
provide this environment variable when starting texttops; a patch could
look like this:

# diff cups-1.4.6/scheduler/cupsfilter.c*
838c838
<               *envp[13],              /* Environment variables */
---
>               *envp[12],              /* Environment variables */
847d846
<               charset[1024],          /* CHARSET */
881d879
<   snprintf(charset, sizeof(charset), "CHARSET=utf-8");
928,929c926
<   envp[11] = charset;
<   envp[12] = NULL;
---
>   envp[11] = NULL;

see also:
https://www.cups.org/newsgroups.php?s25696+gcups.general+v25707+T0

Matthias

Link: https://www.cups.org/str.php?L4273
Version: 1.4.3





More information about the cups-devel mailing list