I get an error when running "make check" after building R-devel r70629 on Ubuntu 14.04. Here are the relevant lines in the file "reg-tests-1c.Rout.fail":

  > ## m1z uses match(x, *) with length(x) == 1 and failed in R 3.3.0
  > ## PR#16909 - a consequence of the match() bug; check here too:
  > dv <- data.frame(varé1 = 1:3, varé2 = 3); dv[,"varé2"] <- 2
  Error: unexpected input in "dv <- data.frame(var<C3>"
  Execution halted

The attached patch uses escape sequences for all non-ASCII characters in this test and performs pretty much the same check as the original version, as far as I know. This fixes "make check" for me. The patched check fails on R 3.3.0 as it should.

Here is the output of "locale":

  LANG=en_GB
  LANGUAGE=en_GB:
  LC_CTYPE=fi_FI.UTF-8
  LC_NUMERIC="en_GB"
  LC_TIME="en_GB"
  LC_COLLATE="en_GB"
  LC_MONETARY=fi_FI.UTF-8
  LC_MESSAGES="en_GB"
  LC_PAPER="en_GB"
  LC_NAME="en_GB"
  LC_ADDRESS="en_GB"
  LC_TELEPHONE="en_GB"
  LC_MEASUREMENT="en_GB"
  LC_IDENTIFICATION="en_GB"
  LC_ALL=

--
Mikko Korpela
Department of Geosciences and Geography
University of Helsinki
Index: tests/reg-tests-1c.R
===================================================================
--- tests/reg-tests-1c.R	(revision 70629)
+++ tests/reg-tests-1c.R	(working copy)
@@ -1618,8 +1618,9 @@
 	  identical(m1z == 2L, !iNA))
 ## m1z uses match(x, *) with length(x) == 1 and failed in R 3.3.0
 ## PR#16909 - a consequence of the match() bug; check here too:
-dv <- data.frame(varé1 = 1:3, varé2 = 3); dv[,"varé2"] <- 2
-stopifnot(ncol(dv) == 2, dv[,2] == 2, identical(names(dv), paste0("varé",1:2)))
+dvn <- paste0("var\xe9", 1:2); Encoding(dvn) <- "latin1"
+dv <- data.frame(1:3, 3); names(dv) <- dvn; dv[,"var\u00e92"] <- 2
+stopifnot(ncol(dv) == 2, dv[,2] == 2, identical(names(dv), dvn))
 ## in R 3.3.0, got a 3rd column
 
 
______________________________________________
R-devel@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-devel

Reply via email to