Skip to content

On the CLI, lp and lpr don't print plain ASCII textfiles #684

@emk2203

Description

@emk2203

Before you write the report
Read the REPORTING_ISSUES.md file in the main repository and prepare data mentioned there which looks relevant to you issue. -- done

Describe the bug
lp and lpr are unable to get plain ASCII files printed.

To Reproduce
Steps to reproduce the behavior:

  1. Use any ASCII-encoded file. Ubiquitous example could be /etc/bash_completion.d/000_bash_completion_compat.bash.
  2. Send to printer with lp -d <printer> <ASCII file>
  3. Observe an output of blank pages (Epson ET) or no pages at all (HP LaserJet, Lexmark).
  4. If you are on an Arch-based system, the print command results in garbled output.

Expected behavior
The file gets printed as a text file with the printer's default font for plain ASCII printing.

Screenshots
Photo of Arch output could be supplied if needed.

System Information:

  • OS and its version: Ubuntu 25.10, but issue exists for a long time in older versions. Also Arch Linux as a second reference point. While Ubuntu prints blank pages or nothing at all, Arch Linux CUPS prints pages with gibberish.
  • Application CLI
  • CUPS version 2.4.12-0ubuntu3, or 2.4.14-1 (Arch)

Additional context
If the file is opened by paps and converted to postscript, it prints as expected (paps <ASCII file> | lp -d <printer> -o <options>.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions