Skip to content
Back to formatted view

Raw Message

Message-ID: <200411250923.KAA16928@jacaranda.math.u-psud.fr>
Date: 2004-11-25T09:23:51Z
From: Jean Coursol
Subject: Danish characters i R2.0.1 vs R1.9.1 under winXP
In-Reply-To: <BAY1-DAV18752B378D942FD7000ECA9FB90@phx.gbl>

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