Skip to content
Prev 264 / 63424 Next

R-alpha: ISO Latin1 and Readline

Hmm.

I have e.g.

hornik@aragorn:/var/tmp/hornik$ cat =E4=F6=FC.dat=20
1 2 3
4 5 6

R> x <- read.table("/var/tmp/hornik/=E4=F6=FC.dat")
R> x
  V1 V2 V3
1  1  2  3
2  4  5  6

I think the trick is that you need to have the readline init file
(INPUTRC, typically something like /etc/inputrc) specify

     # don't strip characters to 7 bits when reading
     set input-meta on
    =20
     # allow iso-latin1 characters to be inserted rather than converted t=
o
     # prefix-meta sequences
     set convert-meta off
    =20
     # display characters with the eighth bit set directly rather than
     # as meta-prefixed characters
     set output-meta on

(comments from the readline/info sample file, the settings are what we
use here ...).
Not sure.  Maybe yes so that e.g. if I had to impress someone in
Austrian I could use "Gr=F6=DFe" as a variable name ...

-k
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
r-devel mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html
Send "info", "help", or "[un]subscribe"
(in the "body", not the subject !)  To: r-devel-request@stat.math.ethz.ch
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-