Re: Cups and charactersets



Eivind E wrote:
Greets. I run cups on a freebsdmachine (6.2-PRERELEASE), and everything

I'm using FreeBSD 6.2-BETA2, but I don't think that it makes a difference.
I'm using HPLIP, but it uses CUPS as a spooler and so on. My printer is a HP Photosmart 8250.

works when printing non-text. When trying to print a pure textfile
using lpr (I've renamed the lpr and associates meant for lpd in /usr/bin
to avoid interference), I don't get Norwegian characters like æøå.

I have the same problem.

I've tried setting DefaultCharset iso-8859-1 in
/usr/local/etc/cups/cupsd.conf and it doesn't help.

You have restarted cupsd after that, of course?
Anyway, I've tried the same, and it doesn't change anything.

The LANG variable is
also set to no_NO.ISO8859-1.

I have tried printing a text file (with norwegian characters in it) in two ways, for both the command was

lpr textfile
('file textfile' reports that the file contains "ISO-8859 text")

a) from the root shell (ok, a xterm in which I did 'su -' first). This shell doesn't have a LANG variable set at all.
The output in this case are missing all norwegian characters.

b) from my user's shell (again, an xterm). This shell have LANG=en_US.ISO8859-1.
In this case, the output contain norwegian characters

However, in both cases a part of the text is missing (it varies, but the first line is always mssing, sometimes it is the first two lines, etc.)
The default text filter is 'texttops', ad I think it is swallowing lines of my text.

DefaultCharset should be enough. Does anybody have a clue of what's

Have you found any documentation that says that DefaultCharset affects the printed output at all?
From the documentation I have read, it looks like it is affecting the web page output of cupsd.
(IMO, it _should_ define charset for printed output as well, I have not been able to find documentation that conforms this)
--
Torfinn Ingolfsen,
Norway
.



Relevant Pages

  • Re: LPI Linux Level 1 Exam 102 Question
    ... Which command allows you to make a shell variable visible to ... A lpr -o delete foobar.txt ... B To run a command as a process in a sub-shell. ... shell script anyway. ...
    (comp.os.linux.misc)
  • CUPS, lp and lpr
    ... looks superb. ... Now if I print from the shell, lp does not work, it spits out this error ... Nor does the print function from most other programs. ... Any way to get lp to work (without linking lp to lpr?) ...
    (comp.sys.sgi.admin)
  • Re: LPI Linux Level 1 Exam 102 Question
    ... Which command allows you to make a shell variable visible to ... A lpr -o delete foobar.txt ... B To run a command as a process in a sub-shell. ... shell script anyway. ...
    (comp.os.linux.misc)
  • Re: Printing
    ... but some commands and applications don't execute a shell to ... (My version of lpr doesn't have an -h option. ... See "man lpoptions" for more. ...
    (comp.os.linux.setup)