[cups.bugs] [HIGH] STR #2143: texttops fails on foreign locale

kssingvo.suse kssingvo at suse.de
Mon Dec 11 07:36:20 PST 2006


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

[STR New]

It's not possible to print text/plain, if the user has a foreign locale
set.
To reproduce just do:
echo "Hello world" | env LANG=de_DE lp

The cause for the failure is found in filter/texttops:
  printf("/FN /cupsNormal findfont [%.3f 0 0 %.3f 0 0] makefont def\n",
120.0 / CharsPerInch, 68.0 / LinesPerInch);
  [...and same in next line...]
The result is:
  /FN /cupsNormal findfont [12,000 0 0 11,333 0 0] makefont def
  /FB /cupsBold findfont [12,000 0 0 11,333 0 0] makefont def
but "12,000" (note the comma) is not a valid in PostScript.

I think this is introduced by the fact that cups supplies the LANG in the
environment per print-job.

Running openSUSE-10.2, with glibc-2.5, and cups-1.2.7

Note: I'm running cups-1.2.7, but the STR doesn't offer this choice.

Link: http://www.cups.org/str.php?L2143
Version: 1.2.6





More information about the cups-devel mailing list