[R-sig-Debian] Locale settings on Debian

Gregor GORJANC gregor.gorjanc at bfro.uni-lj.si
Tue May 3 12:32:43 CEST 2005


Hello!

I have a problem with locales in R (debian package r-base) 2.1.0-1. I get
the following error:

$ R

R : Copyright 2005, The R Foundation for Statistical Computing
Version 2.1.0  (2005-04-18), ISBN 3-900051-07-0

R is free software and comes with ABSOLUTELY NO WARRANTY.
You are welcome to redistribute it under certain conditions.
Type 'license()' or 'licence()' for distribution details.

  Natural language support but running in an English locale

R is a collaborative project with many contributors.
Type 'contributors()' for more information and
'citation()' on how to cite R or R packages in publications.

Type 'demo()' for some demos, 'help()' for on-line help, or
'help.start()' for a HTML browser interface to help.
Type 'q()' to quit R.


R> plot(1:10)
Error in X11() : could not find any X11 fonts
Check that the Font Path is correct.
In addition: Warning messages:
1: locale not supported by Xlib: some X ops will operate in C locale
2: X cannot set locale modifiers

# In R I have the following locales, which are a mixture of mine setting
# (look at the end of this mail) and R settings i.e. some my locales
# settings were overriden by R and some added
R> Sys.getlocale()
[1]"LC_CTYPE=en_US.utf8;LC_NUMERIC=C;LC_TIME=en_US.utf8;LC_COLLATE=en_US.utf8;
LC_MONETARY=en_US.utf8;LC_MESSAGES=en_US.utf8;LC_PAPER=C;LC_NAME=C;LC_ADDRESS=C;
LC_TELEPHONE=C;LC_MEASUREMENT=C;LC_IDENTIFICATION=C"

# and new internationalization functions say that everything should be OK
R> l10n_info()
$MBCS
[1] TRUE

$"UTF-8"
[1] TRUE

# and It afcourse works fine if I set
R> Sys.setlocale("LC_CTYPE", "C")

# If I echo LC variables in terminal I have
$ echo $LC
$LC_ALL          $LC_MEASUREMENT  $LC_PAPER        $LC_TIME

$ echo $LC_PAPER
a4

$ echo $LC_TIME
en_US

$ echo $LC_MEASUREMENT
metric

$ echo $LC_ALL
en_US.utf8

$ echo $LAN
$LANG      $LANGUAGE

$ echo $LANG
en_US.utf8

$ echo $LANGUAGE
en_US.utf8

# I use en_US.utf8 since I need possibility to display also non-ascii
# characters in terminal.

Does anyone have any suggestions what should I do?

---
Lep pozdrav / With regards,
    Gregor Gorjanc

----------------------------------------------------------------------
University of Ljubljana
Biotechnical Faculty        URI: http://www.bfro.uni-lj.si/MR/ggorjan
Zootechnical Department     mail: gregor.gorjanc <at> bfro.uni-lj.si
Groblje 3                   tel: +386 (0)1 72 17 861
SI-1230 Domzale             fax: +386 (0)1 72 17 888
Slovenia, Europe
----------------------------------------------------------------------
"One must learn by doing the thing; for though you think you know it,
 you have no certainty until you try." Sophocles ~ 450 B.C.



More information about the R-SIG-Debian mailing list