[Rd] Crash with Unicode and sub (PR#14114)

From: <g.russell_at_eos-solutions.com>
Date: Mon, 07 Dec 2009 12:15:11 +0100 (CET)


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:

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



R-devel_at_r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-devel Received on Mon 07 Dec 2009 - 11:27:56 GMT

This archive was generated by hypermail 2.2.0 : Thu 10 Dec 2009 - 08:21:02 GMT