Skip to content
Prev 59800 / 398502 Next

Danish characters i R2.0.1 vs R1.9.1 under winXP

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:
Error: syntax error
[1] "\351"                 # different from R1.9.1 (="??")
[1] "fr_FR"
[1] "??"                    # OK for display

Another solution:

export LC_ALL='fr_FR'      # before loading R

and then Sys.setlocale becomes useless.

Jean Coursol