[R-SIG-Mac] Bug related to locale changes.

peter dalgaard pdalgd at gmail.com
Mon Jun 8 13:59:31 CEST 2015


On 08 Jun 2015, at 13:40 , Duncan Murdoch <murdoch.duncan at gmail.com> wrote:

> I posted this to R-devel yesterday; from responses received, it appears
> to be OSX-specific (maybe Mavericks-specific).
> 
> In an R session started from the terminal with R --vanilla, I see this:
> 
>> Sys.setlocale(locale="en_CA")
> [1] "en_CA/en_CA/en_CA/C/en_CA/en_CA.UTF-8"
>> "320" > "300"
> [1] NA
>> "320" > "300"
> [1] TRUE
> 
> The first string comparison after the locale change produces NA, while
> later ones are fine.
> 
> The locale string "en_CA" doesn't appear to matter, as long as it is
> different from my previous locale.
> 
> Do others see this?  Can we fix it before the 3.2.1 release?
> 
> Duncan Murdoch
> 

I see it too on Mavericks (local build), going back to 

R Under development (unstable) (2015-03-17 r67996) -- "Unsuffered Consequences"

and it is even in the CRAN version (Mavericks build, I think - x86_64-apple-darwin13.1.0 (64-bit))

R version 3.1.1 (2014-07-10) -- "Sock it to Me"



> _______________________________________________
> R-SIG-Mac mailing list
> R-SIG-Mac at r-project.org
> https://stat.ethz.ch/mailman/listinfo/r-sig-mac

-- 
Peter Dalgaard, Professor,
Center for Statistics, Copenhagen Business School
Solbjerg Plads 3, 2000 Frederiksberg, Denmark
Phone: (+45)38153501
Office: A 4.23
Email: pd.mes at cbs.dk  Priv: PDalgd at gmail.com



More information about the R-SIG-Mac mailing list