[Bug 590640] New: enscript manpage documents --output=- option. It doesn't work.
http://bugzilla.novell.com/show_bug.cgi?id=590640 http://bugzilla.novell.com/show_bug.cgi?id=590640#c0 Summary: enscript manpage documents --output=- option. It doesn't work. Classification: openSUSE Product: openSUSE 11.2 Version: Final Platform: Other OS/Version: Other Status: NEW Severity: Normal Priority: P5 - None Component: Other AssignedTo: bnc-team-screening@forge.provo.novell.com ReportedBy: jnelson-suse@jamponi.net QAContact: qa@suse.de Found By: --- Blocker: --- User-Agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.1.8) Gecko/20100204 SUSE/3.5.8-0.1.1 Firefox/3.5.8
From the enscript manpage:
-p file, --output=file Leave the output to file file. If the file is `-', enscript sends the output to the standard output stdout. In reality: [jnelson@worklaptop:~] enscript --output=- prefixes enscript: unrecognized option '--output-' Try `enscript --help' for more information. [jnelson@worklaptop:~] The short option works, but the long option doesn't. Reproducible: Always Steps to Reproduce: 1. 2. 3. -- Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
http://bugzilla.novell.com/show_bug.cgi?id=590640 http://bugzilla.novell.com/show_bug.cgi?id=590640#c yang xiaoyu <xyyang@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |xyyang@novell.com AssignedTo|bnc-team-screening@forge.pr |werner@novell.com |ovo.novell.com | -- Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
http://bugzilla.novell.com/show_bug.cgi?id=590640 http://bugzilla.novell.com/show_bug.cgi?id=590640#c1 Dr. Werner Fink <werner@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |NEEDINFO InfoProvider| |jnelson-suse@jamponi.net --- Comment #1 from Dr. Werner Fink <werner@novell.com> 2010-03-24 08:05:04 UTC --- Hmmm ... /suse/werner> enscript --output=- /etc/hosts | wc -l [ 1 pages * 1 copy ] left in - 7261 .. I'd like to know what locale are you using? Please provide the output of the command locale and also the output of bash -x enscript --output=- /etc/hosts > /dev/null -- Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
http://bugzilla.novell.com/show_bug.cgi?id=590640 http://bugzilla.novell.com/show_bug.cgi?id=590640#c2 Jon Nelson <jnelson-suse@jamponi.net> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEEDINFO |NEW InfoProvider|jnelson-suse@jamponi.net | --- Comment #2 from Jon Nelson <jnelson-suse@jamponi.net> 2010-03-24 13:37:11 UTC --- [jnelson@worklaptop:~] locale LANG=en_US.UTF-8 LC_CTYPE="en_US.UTF-8" LC_NUMERIC="en_US.UTF-8" LC_TIME="en_US.UTF-8" LC_COLLATE="en_US.UTF-8" LC_MONETARY="en_US.UTF-8" LC_MESSAGES="en_US.UTF-8" LC_PAPER="en_US.UTF-8" LC_NAME="en_US.UTF-8" LC_ADDRESS="en_US.UTF-8" LC_TELEPHONE="en_US.UTF-8" LC_MEASUREMENT="en_US.UTF-8" LC_IDENTIFICATION="en_US.UTF-8" LC_ALL= [jnelson@worklaptop:~] bash -x enscript --output=- /etc/hosts > /dev/null + declare -i err cnt opt isf + declare -a CMDLINE FILES + unset ++ LANG=en_US ++ locale charmap + ENC=ISO-8859-1 + test ISO-8859-1 = ISO-8859-1 + ENC=ISO-8859-15 + test en_US = en_US + ENC=ISO-8859-1 + case "$@" in + case "${ENC%-*}" in + LONG=columns:,pages:,file-align:,header:,no-header,truncate-lines,line-numbers::,setpagedevice:,escapes::,highlight::,font:,header-font:,print-anyway,fancy-header::,no-job-header,highlight-bars:,indent:,filter:,borders,page-prefeed,no-page-prefeed,lineprinter,lines-per-page:,mail,media:,copies:,newline:,missing-characters,output:,printer:,quiet,silent,landscape,portrait,baselineskip:,statusdict:,title:,tabsize:,underlay::,nup:,verbose,version,language:,options:,encoding:,no-formfeed,pass-through,color::,continuous-page-numbers,download-font:,extended-return-values,filter-stdin:,footer:,h-column-height:,help,help-highlight,highlight-bar-gray:,list-media,margins:,non-printable-format:,nup-columnwise,nup-xpad:,nup-ypad:,page-label-format:,ps-level:,printer-options:,rotate-even-pages,slice:,style:,swap-even-page-margins,toc,ul-angle:,ul-font:,ul-gray:,ul-position:,ul-style:,word-wrap + SHORT='#:,1,2,a:,A:,b:,B,c,C::,d,D:,e::,E::,f:,F:,g,G,h,H:,i:,I:,j,J:,k,K,l,L:,m,M:,o:,O,p:,P:,q,r,R,s:,S:,t:,T:,u::,U:,v,V,w:,W:,X:,z,Z' + OIFS=' ' + IFS=' ' + CMDLINE=($(getopt -o $SHORT -l $LONG -s bash -q -- "$@" | LC_ALL=POSIX sed -r ' s|--([a-z-]+)[[:blank:]]?([^-])|--\1=\2|g s|-([CeEHu])[[:blank:]]?([^-])|-\1\2|g s|=([[:punct:]]*[[:blank:]]+[[:punct:]]*)|\1|g s|-X[[:blank:]]*[[:punct:]]UTF-8[[:punct:]]||g s|[[:punct:]]-[[:punct:]]|-|g s|--[[:blank:]]|--\n| s|[[:blank:]]-|\n-|g ' test ${PIPESTATUS[0]} -eq 0 || exit 1 )) ++ LC_ALL=POSIX ++ sed -r ' s|--([a-z-]+)[[:blank:]]?([^-])|--\1=\2|g s|-([CeEHu])[[:blank:]]?([^-])|-\1\2|g s|=([[:punct:]]*[[:blank:]]+[[:punct:]]*)|\1|g s|-X[[:blank:]]*[[:punct:]]UTF-8[[:punct:]]||g s|[[:punct:]]-[[:punct:]]|-|g s|--[[:blank:]]|--\n| s|[[:blank:]]-|\n-|g ' ++ getopt -o '#:,1,2,a:,A:,b:,B,c,C::,d,D:,e::,E::,f:,F:,g,G,h,H:,i:,I:,j,J:,k,K,l,L:,m,M:,o:,O,p:,P:,q,r,R,s:,S:,t:,T:,u::,U:,v,V,w:,W:,X:,z,Z' -l columns:,pages:,file-align:,header:,no-header,truncate-lines,line-numbers::,setpagedevice:,escapes::,highlight::,font:,header-font:,print-anyway,fancy-header::,no-job-header,highlight-bars:,indent:,filter:,borders,page-prefeed,no-page-prefeed,lineprinter,lines-per-page:,mail,media:,copies:,newline:,missing-characters,output:,printer:,quiet,silent,landscape,portrait,baselineskip:,statusdict:,title:,tabsize:,underlay::,nup:,verbose,version,language:,options:,encoding:,no-formfeed,pass-through,color::,continuous-page-numbers,download-font:,extended-return-values,filter-stdin:,footer:,h-column-height:,help,help-highlight,highlight-bar-gray:,list-media,margins:,non-printable-format:,nup-columnwise,nup-xpad:,nup-ypad:,page-label-format:,ps-level:,printer-options:,rotate-even-pages,slice:,style:,swap-even-page-margins,toc,ul-angle:,ul-font:,ul-gray:,ul-position:,ul-style:,word-wrap -s bash -q -- --output=- /etc/hosts ++ test 0 -eq 0 + let err=0 + IFS=' ' + test 0 -ne 0 + let isf=0 + let opt=0 + (( opt<3 )) + arg=--output- + test 0 -ne 0 + test --output- = -- + let opt++ + (( opt<3 )) + arg=-- + test 0 -ne 0 + test -- = -- + CMDLINE[$opt]= + let isf++ + let opt++ + (( opt<3 )) + arg=''\''/etc/hosts'\''' + test 1 -ne 0 + CMDLINE[$opt]= + FILES[$isf]=''\''/etc/hosts'\''' + let isf++ + test ''\''/etc/hosts'\''' = -- + let opt++ + (( opt<3 )) + test ''\''/etc/hosts'\''' = - + eval set -- --output- ''\''/etc/hosts'\''' ++ set -- --output- /etc/hosts + case "$@" in + test 1 -gt 0 + exec -a enscript enscript.bin -X ISO-8859-1 '--filter=[[ $(file -b %s 2>/dev/null) =~ '\''UTF-8 Unicode text'\'' ]] && iconv -c -f UTF-8 -t ISO-8859-1 %s || cat %s' --output- /etc/hosts enscript: unrecognized option '--output-' Try `enscript --help' for more information. [jnelson@worklaptop:~] -- Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
http://bugzilla.novell.com/show_bug.cgi?id=590640 http://bugzilla.novell.com/show_bug.cgi?id=590640#c3 --- Comment #3 from Jon Nelson <jnelson-suse@jamponi.net> 2010-03-24 13:37:38 UTC --- This may help: [jnelson@worklaptop:~] rpm -qi enscript Name : enscript Relocations: (not relocatable) Version : 1.6.4 Vendor: openSUSE Release : 158.2 Build Date: Fri 23 Oct 2009 09:49:38 PM CDT Install Date: Thu 12 Nov 2009 07:11:18 PM CST Build Host: build10 Group : Productivity/Publishing/PS Source RPM: enscript-1.6.4-158.2.src.rpm Size : 1827278 License: GPL v2 or later Signature : RSA/8, Fri 23 Oct 2009 09:50:02 PM CDT, Key ID b88b2fd43dbdc284 Packager : http://bugs.opensuse.org Summary : An ASCII to PostScript(tm) Converter Description : Enscript converts ASCII files to PostScript and writes the generated output to a file or sends it directly to the printer. The Enscript configuration file is in /etc/enscript.cfg. Warning: enscript is not able to convert complex unicode (UTF-8) text to PostScript. Only language text which can be converted from UTF-8 to latin encodings are supported with the help of a wrapper script. ~ ~ Authors: -------- Markku Rossi <mtr@iki.fi> Distribution: openSUSE 11.2 [jnelson@worklaptop:~] rpm -V enscript [jnelson@worklaptop:~] -- Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
http://bugzilla.novell.com/show_bug.cgi?id=590640 http://bugzilla.novell.com/show_bug.cgi?id=590640#c4 Dr. Werner Fink <werner@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |jmauzy@novell.com --- Comment #4 from Dr. Werner Fink <werner@novell.com> 2010-03-31 08:25:17 UTC --- *** Bug 592467 has been marked as a duplicate of this bug. *** http://bugzilla.novell.com/show_bug.cgi?id=592467 -- Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
http://bugzilla.novell.com/show_bug.cgi?id=590640 http://bugzilla.novell.com/show_bug.cgi?id=590640#c5 --- Comment #5 from Dr. Werner Fink <werner@novell.com> 2010-03-31 08:25:21 UTC --- *** Bug 592473 has been marked as a duplicate of this bug. *** http://bugzilla.novell.com/show_bug.cgi?id=592473 -- Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
http://bugzilla.novell.com/show_bug.cgi?id=590640 http://bugzilla.novell.com/show_bug.cgi?id=590640#c Dr. Werner Fink <werner@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Priority|P5 - None |P3 - Medium Severity|Normal |Major -- Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
http://bugzilla.novell.com/show_bug.cgi?id=590640 http://bugzilla.novell.com/show_bug.cgi?id=590640#c6 --- Comment #6 from Dr. Werner Fink <werner@novell.com> 2010-03-31 08:27:00 UTC --- Welcome John -- Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
http://bugzilla.novell.com/show_bug.cgi?id=590640 http://bugzilla.novell.com/show_bug.cgi?id=590640#c7 --- Comment #7 from Dr. Werner Fink <werner@novell.com> 2010-03-31 10:14:12 UTC --- Created an attachment (id=351632) --> (http://bugzilla.novell.com/attachment.cgi?id=351632) The new shell script /usr/bin/enscript Please Jon and John could you test out this new shell script -- Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
http://bugzilla.novell.com/show_bug.cgi?id=590640 http://bugzilla.novell.com/show_bug.cgi?id=590640#c Dr. Werner Fink <werner@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |NEEDINFO InfoProvider| |jnelson-suse@jamponi.net -- Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
http://bugzilla.novell.com/show_bug.cgi?id=590640 http://bugzilla.novell.com/show_bug.cgi?id=590640#c8 --- Comment #8 from Dr. Werner Fink <werner@novell.com> 2010-04-07 10:31:55 UTC --- Any news? Please provide feedback. -- Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
http://bugzilla.novell.com/show_bug.cgi?id=590640 http://bugzilla.novell.com/show_bug.cgi?id=590640#c13 Dr. Werner Fink <werner@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEEDINFO |RESOLVED InfoProvider|jmauzy@novell.com | Resolution| |NORESPONSE --- Comment #13 from Dr. Werner Fink <werner@novell.com> 2010-05-17 07:27:31 UTC --- The fix is now part of factory. nevertheless closing this one with NORESPONSE. For the similiar bug on openSUSE 11.2 (Hello Jon) please try out the package enscript from http://download.opensuse.org/repositories/Publishing/ I've also enabled SLES10 and SLES11 for this Repository. -- Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
http://bugzilla.novell.com/show_bug.cgi?id=590640 http://bugzilla.novell.com/show_bug.cgi?id=590640#c14 Jon Nelson <jnelson-suse@jamponi.net> changed: What |Removed |Added ---------------------------------------------------------------------------- Resolution|NORESPONSE |FIXED --- Comment #14 from Jon Nelson <jnelson-suse@jamponi.net> 2010-05-17 15:41:42 UTC --- Yes the modified shell script works great (openSUSE 11.2). Thanks! -- Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=590640 https://bugzilla.novell.com/show_bug.cgi?id=590640#c15 Swamp Workflow Management <swamp@suse.de> changed: What |Removed |Added ---------------------------------------------------------------------------- Status Whiteboard| |maint:released:sle11-sp1:41 | |704 --- Comment #15 from Swamp Workflow Management <swamp@suse.de> 2011-07-01 09:14:29 UTC --- Update released for: enscript, enscript-debuginfo, enscript-debugsource Products: SLE-DEBUGINFO 11-SP1 (i386, ia64, ppc64, s390x, x86_64) SLE-DESKTOP 11-SP1 (i386, x86_64) SLE-SERVER 11-SP1 (i386, ia64, ppc64, s390x, x86_64) SLES4VMWARE 11-SP1 (i386, x86_64) -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
participants (1)
-
bugzilla_noreply@novell.com