Red Hat Bugzilla – Bug 990228
cpi broken again
Last modified: 2013-08-14 22:55:40 EDT
Description of problem:
When cpi is used and the input has over-width characters, all the output characters are piled up on top of one another.
Version-Release number of selected component (if applicable):
Steps to Reproduce:
1.echo "проверка test テスト" > input
2.paps --cpi 10 input > output.ps
Characters on top of one another.
Characters written left-to-right.
Created attachment 780728 [details]
Here's a replacement for paps-fix-tab-width.patch which undoes the breakage, although the output doesn't exactly look great.
@@ -448,9 +448,9 @@
if (paps->cpi > 0.0L)
- int n = geometry.width / avg_width;
+ double n = ((double)geometry.width) / avg_width;
- x_pos += ((double)n) * (1 / paps->cpi * 72.0);
+ x_pos += n * (1 / paps->cpi * 72.0);
paps-0.6.8-26.fc19 has been submitted as an update for Fedora 19.
paps-0.6.8-26.fc18 has been submitted as an update for Fedora 18.
* should fix your issue,
* was pushed to the Fedora 19 testing repository,
* should be available at your local mirror within two days.
Update it with:
# su -c 'yum update --enablerepo=updates-testing paps-0.6.8-26.fc19'
as soon as you are able to.
Please go to the following url:
then log in and leave karma (feedback).
paps-0.6.8-26.fc19 has been pushed to the Fedora 19 stable repository. If problems still persist, please make note of it in this bug report.
paps-0.6.8-26.fc18 has been pushed to the Fedora 18 stable repository. If problems still persist, please make note of it in this bug report.