#1135344 psutils: Some tools of package (like psnup) fail when locale is set.

Package:
psutils
Source:
psutils
Description:
PostScript document handling utilities
Submitter:
Teppo Maenpaa
Date:
2026-05-01 12:13:02 UTC
Severity:
normal
Tags:
#1135344#5
Date:
2026-05-01 12:07:09 UTC
From:
To:
Dear Maintainer,

Suspecting a bug in psutils.

Bug causes tool to die to assert failure, if locale is set. Affects at least fi_FI.UTF-8.
Suspecting that affects all that use decimal comma instead of a decimal dot, but this is a guess.

Tool fails, when I run a command like 'psnup -p a4 -P a4 -4 < infile.ps > outfile.ps'

Tool runs normally, if I change that to 'LC_ALL="C" psnup -p a4 -P a4 -4 < infile.ps > outfile.ps'

When the tool fails, there is an assert failure in /usr/lib/python3/dist-packages/psutils/libpaper.py method get_paper_size()
and output file is zero size.