[Rd] reg-tests-1d.R fails in r72721

Hiroyuki Kawakatsu hkawakat at gmail.com
Wed May 24 11:47:28 CEST 2017


Hi,

I am failing make check in r72721 at the end of reg-tests-1d.R. The
relevant block of code is

## path.expand shouldn't translate to local encoding PR#17120
filename <- "\U9b3c.R"
print(Encoding(filename))
x1 <- path.expand(paste0("~/", filename))
print(Encoding(x1))
x2 <- paste0(path.expand("~/"), filename)
print(Encoding(x2))
stopifnot(identical( path.expand(paste0("~/", filename)), paste0(path.expand("~/"), filename)))
## Chinese character was changed to hex code 

Encoding(x1) is "unknown" while Encoding(x2) is "UTF-8". If I run
this code with R --vanilla, both are UTF-8 and the assertion
passes. What is make check doing differently? Or is there something
wrong with my setting/environment? Thanks,

h.
-- 
+---
| Hiroyuki Kawakatsu
| Business School, Dublin City University
| Dublin 9, Ireland. Tel +353 (0)1 700 7496



More information about the R-devel mailing list