2009/7/1 Stephen Eglen <S.J.Eglen@damtp.cam.ac.uk>


> What does R say when you type the following:
>
> > Sys.getenv('LANG')
>          LANG
> "en_GB.UTF-8"
>

Interestingly, it says something different in the terminal or in emacs.
That's probably it then. In the terminal,

Sys.getenv('LANG')
         LANG
"en_GB.UTF-8"

while from emacs,

Sys.getenv('LANG')
LANG
  ""

and this is irrespective of whether I use ESS or run R from a buffer in bash
mode. Indeed, bash within emacs says,

bash-3.2$locale
LANG=
LC_COLLATE="C"
LC_CTYPE="C"
LC_MESSAGES="C"
LC_MONETARY="C"
LC_NUMERIC="C"
LC_TIME="C"
LC_ALL=

Now why is bash is running differently in emacs is beyond me!

I've tried adding the correct LANG in ~/.bashrc and /etc/bashrc and
/etc/profile but still no luck! I have no idea where this bash process
should get its preferences set.

Many thanks again,

baptiste





>
>
> perhaps that is worth resolving first (if that is the thing that is
> getting in the way).
>
> you can also eliminate ESS from the debugging by running R from within
> M-x shell.
>
> Stephen
>



-- 

_____________________________

Baptiste Auguié

School of Physics
University of Exeter
Stocker Road,
Exeter, Devon,
EX4 4QL, UK

Phone: +44 1392 264187

http://newton.ex.ac.uk/research/emag
______________________________

	[[alternative HTML version deleted]]

