From g.russell at eos-solutions.com  Mon Dec  7 12:15:11 2009
From: g.russell at eos-solutions.com (g.russell at eos-solutions.com)
Date: Mon,  7 Dec 2009 12:15:11 +0100 (CET)
Subject: [Rd] Crash with Unicode and sub (PR#14114)
Message-ID: <20091207111511.90985283031F@mail.pubhealth.ku.dk>

Full_Name: George Russell
Version: 2.10.0
OS: Windows XP Version 2002 SP 2
Submission from: (NULL) (217.111.3.131)


The following typed into R --vanilla induces a crash:
-- cut here --
gctorture()
u <- intToUtf8(c(rep(1e3,1e2),32,c(rep(1e3,1e2))))
v <- rep(u,1e2)
v <- sub(" ","",v)
v %in% ""
-- cut here --

sessionInfo() says:

-- cut here --
R version 2.10.0 (2009-10-26) 
i386-pc-mingw32 

locale:
[1] LC_COLLATE=German_Germany.1252  LC_CTYPE=German_Germany.1252   
[3] LC_MONETARY=German_Germany.1252 LC_NUMERIC=C                   
[5] LC_TIME=German_Germany.1252    

attached base packages:
[1] stats     graphics  grDevices datasets  utils     methods   base
-- cut here --

I apologise for not testing this with R-2.10.1 but as far as I can see there are
only source releases available so far, which I am not able to compile.

Best wishes and thanks,

George Russell



[Rd] Crash with Unicode and sub (PR#14114)
g.russell at eos-solutions.com