From owner-freebsd-doc Mon Sep 9 23:29:28 1996 Return-Path: owner-doc Received: (from root@localhost) by freefall.freebsd.org (8.7.5/8.7.3) id XAA19039 for doc-outgoing; Mon, 9 Sep 1996 23:29:28 -0700 (PDT) Received: from ghpc6.ihf.rwth-aachen.de (ghpc6.ihf.RWTH-Aachen.DE [134.130.90.6]) by freefall.freebsd.org (8.7.5/8.7.3) with SMTP id XAA19033 for ; Mon, 9 Sep 1996 23:29:20 -0700 (PDT) Received: (from thomas@localhost) by ghpc6.ihf.rwth-aachen.de (8.6.12/8.6.9) id IAA28595; Tue, 10 Sep 1996 08:28:52 +0200 From: Thomas Gellekum Message-Id: <199609100628.IAA28595@ghpc6.ihf.rwth-aachen.de> Subject: Re: Default paper size To: jfieber@indiana.edu (John Fieber) Date: Tue, 10 Sep 1996 08:28:51 +0200 (MET DST) Cc: thomas@ghpc8.ihf.rwth-aachen.de, doc@freebsd.org In-Reply-To: from John Fieber at "Sep 9, 96 09:14:10 pm" Organization: Institut f. Hochfrequenztechnik, RWTH Aachen X-Mailer: ELM [version 2.4ME+ PL11 (25)] MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: owner-doc@freebsd.org X-Loop: FreeBSD.org Precedence: bulk John Fieber wrote: > On Mon, 9 Sep 1996, Thomas Gellekum wrote: > > > John Fieber wrote: > > > I'm thinking of clever ways to set the paper size. Basically > > > > How about $PAPERSIZE? $LANG has too many side effects, IMHO. > > Is PAPERSIZE a commonly used environment variable? More common > than LANG or LC_*? No; I made it up. Define it in /etc/{profile,csh.login} and it's there. > My goal is to make an intelligent guess about the default in the > *absence* of an *explicit* statement on the part of the user. I > thought that LANG, although imperfect, might provide the best > guess. Oh. I misunderstood you. In this case, I agree. But defining a variable like PAPERSIZE as an explicit statement on part of the user could still be checked and override the LANG variable. Some of our ports could also benefit from it. E. g., some drivers in ghostscript can be compiled for a default papersize of A4. > Is there a big penalty for having LANG set if you don't really > need it? If not, maybe the installation procedure should prompt > for a default, then the LANG variable would be a more reliable > indication. I do remember tcsh spitting out german messages when LANG was set and I didn't like it. LANG would affect all the LC_* variables and I prefer to set only LC_CTYPE and leave the rest alone. tg