From hin-tak.leung at cimr.cam.ac.uk  Fri Apr 21 14:52:24 2006
From: hin-tak.leung at cimr.cam.ac.uk (Hin-Tak Leung)
Date: Fri, 21 Apr 2006 13:52:24 +0100
Subject: [Rd] R_PAPERSIZE and LC_PAPER
In-Reply-To: <Pine.LNX.4.64.0604202006001.32057@gannet.stats.ox.ac.uk>
References: <Pine.LNX.4.64.0604200758440.14307@gannet.stats.ox.ac.uk>
	<1145548335.4876.17.camel@localhost.localdomain>
	<Pine.LNX.4.64.0604201811480.28018@gannet.stats.ox.ac.uk>
	<1145557958.4876.67.camel@localhost.localdomain>	<4447D6AA.1090304@jhsph.edu>	<1145559230.4876.83.camel@localhost.localdomain>
	<Pine.LNX.4.64.0604202006001.32057@gannet.stats.ox.ac.uk>
Message-ID: <4448D588.2090207@cimr.cam.ac.uk>

Prof Brian Ripley wrote:
<snipped>
> It does not exist in any system at present (not even mine): just an idea 
> in my head to represent the default found at configure time.
> 
> In some sense LC_PAPER is set on FC3:
> 
> gannet% locale -ck LC_PAPER
> LC_PAPER
> height=297
> width=210
> paper-codeset="ISO-8859-1"
> 
> and it is unsupported on Solaris 8.  And
> 
>> Sys.getlocale("LC_PAPER")
> [1] "en_GB"
> 
> in the system I am prototyping just now.

Just to chip in on the discussion - on FC5,

$ locale -ck LC_PAPER
LC_PAPER
height=279
width=216
paper-codeset="UTF-8"

$ echo $LANG
en_US.UTF-8

(hmm, I must have made a mistake somewhere - would prefer "en_GB").

R 2.2.1 currently on my system (built on FC4 before I ungraded to FC5).
 > Sys.getlocale("LC_PAPER")
Error in Sys.getlocale("LC_PAPER") : invalid 'category' argument

HT



[Rd] R_PAPERSIZE and LC_PAPER
Hin-Tak Leung