The same is true in french under linux. Something changed
from 1.9.1 to 2.0.0.

First, it is necessary to have .inputrc (in $HOME) 
(or $INPUTRC defined) to enter and display 8-bits 
characters under bash and R.

#.inputrc (for readline library)
set input-meta on
set output-meta on
set convert-meta off

Then

Under R2.0.1, I have:

> élément <- "é"           # error for object name
Error: syntax error
> element <- "é"           
> element 
[1] "\351"                 # different from R1.9.1 (="é")

> Sys.setlocale('LC_ALL','fr_FR')
[1] "fr_FR"
> élément <- "é"           # OK for object name
> élément     
[1] "é"                    # OK for display

Another solution:

export LC_ALL='fr_FR'      # before loading R

and then Sys.setlocale becomes useless.

Jean Coursol

______________________________________________
[EMAIL PROTECTED] mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html

Reply via email to