From mick.jordan at oracle.com  Sat Mar 12 03:58:07 2016
From: mick.jordan at oracle.com (Mick Jordan)
Date: Fri, 11 Mar 2016 18:58:07 -0800
Subject: [Rd] R-3.2.4 Mac/Linux different in < on characters
In-Reply-To: <56E3846A.5040808@oracle.com>
References: <56E3846A.5040808@oracle.com>
Message-ID: <56E385BF.2020109@oracle.com>

On 3/11/16 6:52 PM, Mick Jordan wrote:
> Linux:
> > x<-c("0","1");y<-c("a","-1"); x<y
> [1] TRUE TRUE
>
> Mac:
>
> x<-c("0","1");y<-c("a","-1"); x<y
> [1]  TRUE FALSE
>
>
> On both systems, LC_COLLATE/LC_CTYPE/LANG are set to en_US.UTF-8
>
> In Java,FWIW, I get the Mac answer if I use String.compareTo and the 
> Linux answer if I use Collator.compareTo, but the result is consistent 
> on Mac and Linux.
>
So this is probably related to the fact that the Linux system in 
question answers "ICU not in use" whereas the Mac answers "root"?

Mick



[Rd] R-3.2.4 Mac/Linux different in < on characters
Mick Jordan