Re: Re: R-beta: R and LANG

Goran Brostrom (
Thu, 8 Jan 1998 16:32:47 +0100 (MET)

Date: Thu, 8 Jan 1998 16:32:47 +0100 (MET)
From: Goran Brostrom <>
To: Peter Dalgaard BSA <>
Subject: Re: Re: R-beta: R and LANG
In-Reply-To: <>

On 8 Jan 1998, Peter Dalgaard BSA wrote:

> Goran Brostrom <> writes:
> > I am running R 0.61.0 on a Sparc 5, Solaris 2.4, in tcsh. Today I
> > couldn't, to my big surprise, scan a data file in R. As I finally
> > understood it, R wanted a decimal comma instead of a decimal point,
> > because LANG was set to 'sv'. See my runs below. I wonder why this=20
> Apparently, the strtod() C library function accepts different formats
> depending on locale settings, so probably the setlocale(LC_ALL,""); in
> src/main/main.c is doing you in.=20
> This is the same thing that allows you to have a variable called
> "f=F6r=E4ldre" and see come out right on plots, etc., so you don't want t=
> remove that line.=20
> I think that either you should setenv LC_NUMERIC to C or POSIX or R
> should only set LC_CTYPE (and maybe some of the others?).

Yes, the combination (LANG =3D sv & LC_NUMERIC =3D C) seems to work properl=


r-help mailing list -- Read
Send "info", "help", or "[un]subscribe"
(in the "body", not the subject !)  To: