OpenPrinting / OpenPrinting/libcupsfilters

bannertopdf filter produce unreadable symbols

Open
#112 8 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
C
Stars
17
Forks
71
Avg merge
2d 17h
Merged PRs (30d)
13

Description

Describe the bug
If variables contain non-latin symbols text be unreadable.

To Reproduce
Steps to reproduce the behavior:

  1. Export variables
export PPD="/usr/share/cups/model/CUPS-PDF.ppd"
export PRINTER_INFO="Информация"
export PRINTER_LOCATION="Местоположение"
  1. Run filter
/usr/lib/cups/filter/bannertopdf < /usr/share/cups/data/testprint > test.pdf
  1. Open pdf file

Expected behavior
Cyrillic symbols shown correct and readable.

System Information:

  • OS: gnu/linux
  • Version 2.0.1

Additional context
This bug reproducing in test page print with cups.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reproducing the issue with the /usr/lib/cups/filter/bannertopdf command, the supplied PPD and testprint input, then inspect how PRINTER_INFO and PRINTER_LOCATION are handled. Done means the generated test.pdf displays the supplied Cyrillic values correctly and readably.

Written by the indexing model from the issue text.

Assessment

Tech stack
c
Domain
internationalization
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.