diff options
author | obrien <obrien@FreeBSD.org> | 2001-05-18 17:21:10 +0800 |
---|---|---|
committer | obrien <obrien@FreeBSD.org> | 2001-05-18 17:21:10 +0800 |
commit | ab46107014a40592029e0214386f35505d3cf126 (patch) | |
tree | 9f4a8d4ecea5705870eede2884a880727d605d5e /print | |
parent | 0dde4f3b2ce1545b35783fe121d1c17b55265972 (diff) | |
download | freebsd-ports-gnome-ab46107014a40592029e0214386f35505d3cf126.tar.gz freebsd-ports-gnome-ab46107014a40592029e0214386f35505d3cf126.tar.zst freebsd-ports-gnome-ab46107014a40592029e0214386f35505d3cf126.zip |
Don't send the generated output to the printer by default.
Sending the file by default to the printer is (IMHO):
. counter-intuitive; the name a2ps suggests that the tool converts
ASCII (plus other files) to Postscript, but it by no means gives a
hint that it would print something without asking,
. violating the Unix way; we've got pipes, and people are used to use
them when they want to print something (IMHO there isn't even a good
reason for adding all the -P bloat to a2ps at all, but of course, i
don't suggest changing _that_),
. contradictionary to all the documentation about a2ps since the docs
tell you that it would only start printing if a -P or -c option is
being provided,
. a waste of paper for the brave user who starts the program in the
innocent assumption to get just a Postscript file out of it.
Not objected by: ports@freebsd.org, maintainer
Submitted by: joerg
Diffstat (limited to 'print')
-rw-r--r-- | print/a2ps-letter/files/patch-printers.c | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/print/a2ps-letter/files/patch-printers.c b/print/a2ps-letter/files/patch-printers.c new file mode 100644 index 000000000000..943fc6445a24 --- /dev/null +++ b/print/a2ps-letter/files/patch-printers.c @@ -0,0 +1,13 @@ +--- lib/printers.c.orig Tue Oct 12 00:01:59 1999 ++++ lib/printers.c Wed May 2 11:23:25 2001 +@@ -315,8 +315,8 @@ + res->ppd = NULL; /* Printer's ppd are not read yet */ + + /* Output */ +- /* Default is to send to default printer */ +- res->flag_output_is_printer = true; ++ /* Default is to send to stdout */ ++ res->flag_output_is_printer = false; + res->flag_output_name = NULL; + res->output_is_file = true; + res->output_name = NULL; |