From ripley at stats.ox.ac.uk  Fri Apr 21 14:41:56 2006
From: ripley at stats.ox.ac.uk (Prof Brian Ripley)
Date: Fri, 21 Apr 2006 13:41:56 +0100 (BST)
Subject: [Rd] R_PAPERSIZE and LC_PAPER
In-Reply-To: <4448D588.2090207@cimr.cam.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>
	<4448D588.2090207@cimr.cam.ac.uk>
Message-ID: <Pine.LNX.4.64.0604211341180.22661@gannet.stats.ox.ac.uk>

On Fri, 21 Apr 2006, Hin-Tak Leung wrote:

> 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

Yes, that only works in R-devel (2.4.0 to be).

-- 
Brian D. Ripley,                  ripley at stats.ox.ac.uk
Professor of Applied Statistics,  http://www.stats.ox.ac.uk/~ripley/
University of Oxford,             Tel:  +44 1865 272861 (self)
1 South Parks Road,                     +44 1865 272866 (PA)
Oxford OX1 3TG, UK                Fax:  +44 1865 272595



[Rd] R_PAPERSIZE and LC_PAPER
Prof Brian Ripley