Bug 192381

Summary: pr(paginate) no longer correctly replaces tabs with spaces
Product: [Fedora] Fedora Reporter: Landon Kelsey <landonmkelsey>
Component: coreutilsAssignee: Tim Waugh <twaugh>
Status: CLOSED ERRATA QA Contact:
Severity: medium Docs Contact:
Priority: medium    
Version: 5CC: dkerns
Target Milestone: ---   
Target Release: ---   
Hardware: i386   
OS: Linux   
Whiteboard:
Fixed In Version: 5.96-1.2 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2006-06-20 05:43:07 EDT Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---
Bug Depends On:    
Bug Blocks: 150223    

Description Landon Kelsey 2006-05-19 00:28:38 EDT
Description of problem: pr was not on the list so I substituted prctl
pr (paginate no longer replaces tabs with spaces correctly using -e3)


Version-Release number of selected component (if applicable):
pr 5.93
2.6.16-1.2111_FC5 #1 Thu May 4 21:16:58 EDT 2006 i686 i686 i386 GNU/Linux

How reproducible:
landonkateaux (landon) ~/QtFigs4 [1082]>pr -e3 -l60 -f qtfigs.cpp|lp
lp: Unsupported format 'application/octet-stream'!



Steps to Reproduce:
1.pr -e3 -l60 -f qtfigs.cpp|lp
2.
3.
  
Actual results:
landonkateaux (landon) ~/QtFigs4 [1082]>pr -e3 -l60 -f qtfigs.cpp|lp
lp: Unsupported format 'application/octet-stream'!



Expected results: should not get an error and print


Additional info: I've been using this command for years successfully
Comment 1 Karsten Hopp 2006-05-19 05:47:32 EDT
Please read https://bugzilla.redhat.com/bugzilla/page.cgi?id=redhatfaq.html 'How
do I enter a bug?'. There's a chapter how you can find out the bugzilla component
for a given binary.

I'll reassign this to coreutils
Comment 2 Tim Waugh 2006-05-19 05:53:54 EDT
So the problem you're seeing is that 'lp' is failing, not 'pr'.
Comment 3 Tim Waugh 2006-05-19 06:47:25 EDT
Please fetch these RPM files:

  http://people.redhat.com/twaugh/tmp/cups-fc5/i386/

and install them using this command, as root:

  rpm -Fvh cups*-1.2.0-1.3.i386.rpm

Then restart cups:

  /sbin/service cups restart

and try your 'pr ...|lp' command again.  Does it work now?
Comment 4 Landon Kelsey 2006-05-19 10:20:07 EDT
That may work but paginate (pr) is supposed to insert spaces for tabs.

pr -e3 -l60 -f qtfigs.cpp >testx.txt

shows this not being the case
Comment 5 Tim Waugh 2006-05-19 11:42:47 EDT
Please try this test update:

  https://www.redhat.com/archives/fedora-test-list/2006-May/msg00218.html

by fetching:

http://download.fedora.redhat.com/pub/fedora/linux/core/updates/testing/5/i386/coreutils-5.95-1.3.i386.rpm

and installing it ('rpm -Fvh coreutils-5.95-1.3.i386.rpm').
Comment 6 Tim Waugh 2006-05-26 06:38:04 EDT
*** Bug 193198 has been marked as a duplicate of this bug. ***
Comment 7 Landon Kelsey 2006-05-26 08:49:32 EDT
pr now works...thanks!