Note: This is a beta release of Red Hat Bugzilla 5.0. The data contained within is a snapshot of the live data so any changes you make will not be reflected in the production Bugzilla. Also email is disabled so feel free to test any aspect of the site that you want. File any problems you find or give feedback here.
Bug 208592 - Should give non-0 exit code on failure
Summary: Should give non-0 exit code on failure
Alias: None
Product: Fedora
Classification: Fedora
Component: paps
Version: rawhide
Hardware: All
OS: Linux
Target Milestone: ---
Assignee: Akira TAGOH
QA Contact:
Depends On:
Blocks: FC6Target
TreeView+ depends on / blocked
Reported: 2006-09-29 15:16 UTC by Tim Waugh
Modified: 2007-11-30 22:11 UTC (History)
1 user (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Last Closed: 2007-02-20 12:24:32 UTC

Attachments (Terms of Use)

Description Tim Waugh 2006-09-29 15:16:48 UTC
Description of problem:
The texttopaps filter (paps running in CUPS filter mode) doesn't have a non-zero
exit code when it encounters an error.  As a result, print jobs can potentially
get lost.

Version-Release number of selected component (if applicable):

How reproducible:

Steps to Reproduce:
CHARSET=utf-16 CUPS_SERVER= /usr/lib/cups/filter/texttopaps 1 root '' 1
'' input.txt >/dev/null
echo $?
Actual results:
(null): Error while converting strings.

Expected results:
texttopaps: Error while converting strings.

Additional info:
Not sure why it displays '(null)' as the program name, but that's a small issue
compared to the exit code.

Comment 1 Akira TAGOH 2006-09-29 19:10:01 UTC
Fixed in 0.6.6-16.fc6.

Note You need to log in before you can comment on or make changes to this bug.