Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 24 Jan 2001 18:36:25 -0800 (PST)
From:      yuu-w@ascii.co.jp
To:        freebsd-gnats-submit@FreeBSD.org
Subject:   bin/24623: /bin/pr で改頁コードが考慮されていない
Message-ID:  <200101250236.f0P2aP132552@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help


>Number:         24623
>Category:       bin
>Synopsis:       /bin/pr で改頁コードが考慮されていない
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Wed Jan 24 18:40:01 PST 2001
>Closed-Date:
>Last-Modified:
>Originator:     渡邉 雄一
>Release:        FreeBSD 3.4R
>Organization:
株)アスキー
>Environment:
FreeBSD prtsvr00.oa.ascii.co.jp 3.4-RELEASE FreeBSD 3.4-RELEASE #4: Wed Jun 21 17:55:12 JST 2000     root@prtsvr900.oa.ascii.co.jp:/usr/src/sys/compile/PRTSVR00
  i386
>Description:
/bin/pr でテキストを処理する際に、入力テキスト中の改頁文字(Ctrl + L : 014)
が考慮されていないので、pr の出力結果をプリンタに入力しても意図した出力が
得られない。
>How-To-Repeat:
例えば、a01.txt として

----(ここから)------
page = 1
ここで改ページコード^L
page = 2
----(ここまで)------

というファイルを用意して

% pr -1 -w 90 -l 66 -h "test" a01.txt

と処理しても、改ページコードが含まれたまま処理されて、結局プリンタ(あるいは
その前処理フィルタで)改ページコードが解釈されて意図しない出力が得られます。
>Fix:
現在、代替手段として GNU textutils (ports では textproc/testutils) の gpr
(/usr/local/bin/gpr) を使っています。

>Release-Note:
>Audit-Trail:
>Unformatted:


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-bugs" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200101250236.f0P2aP132552>