Re: [Rd] R_PAPERSIZE and LC_PAPER

From: Prof Brian Ripley <ripley_at_stats.ox.ac.uk>
Date: Fri 21 Apr 2006 - 12:41:56 GMT

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@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

______________________________________________
R-devel@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-devel
Received on Fri Apr 21 23:35:29 2006

This archive was generated by hypermail 2.1.8 : Fri 21 Apr 2006 - 16:18:37 GMT