Prev · NextSTR #4273: cupsfilter does not set "CHARSET=utf-8" into environment of texttops

Status:5 - New
Priority:4 - High, e.g. key functionality not working
Scope:3 - Applies to all machines and operating systems
Subsystem:Unassigned
Summary:cupsfilter does not set "CHARSET=utf-8" into environment of texttops
Version:1.4.3
Created By:gurucubano
Assigned To:Unassigned
Fix Version:Unassigned
Update Notification:

Receive EMails Don't Receive EMails


Trouble Report Files:

No files


Trouble Report Dialog:

Name/Time/Date/Text
gurucubano: 23:57 Feb 10, 2013
 
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