Skip to content
Prev 20376 / 63424 Next

R_PAPERSIZE and LC_PAPER

On Thu, 2006-04-20 at 20:56 +0100, Prof Brian Ripley wrote:
OK...so as I surmised below, R_PAPERSIZE_DEFAULT is part of the proposed
change. Makes sense.

BTW, on my FC4 system:

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


However, as I note below LC_ALL is unset:

$ locale -ck LC_ALL
$


Googling seems to be somewhat inconclusive as to the default use of
LC_ALL, but it is clearly used/set in some locales and by some
applications.

However, the official POSIX definition is:

LC_ALL
        This variable shall determine the values for all locale
        categories. The value of the LC_ALL environment variable has
        precedence over any of the other environment variables starting
        with LC_ ( LC_COLLATE , LC_CTYPE , LC_MESSAGES , LC_MONETARY ,
        LC_NUMERIC , LC_TIME ) and the LANG environment variable.
        
Consistent with some comments that I found, it seems to suggest that
LC_ALL can serve as something of an override relative to the other LC_*
variables.

This position would support an argument that if set, it would override
the logic below as a system default, perhaps and unless R_PAPERSIZE is
set in the site or user profile.

Thus, a possible hierarchy of precedence from high to low might be:

R_PAPERSIZE
LC_ALL
LC_PAPER
R_PAPERSIZE_DEFAULT


Thoughts?

Regards,

Marc
<SNIP>