Join GitHub today
convert path to the native locale before passing to boost::interprocess::file_mapping() #838
As described on #834, the behavior of
R 3.4.4 on Windows 10:
Encoding(normalizePath("~/鬼")) #>  "unknown"
R 3.5.0 on Windows 10:
Encoding(normalizePath("~/鬼")) #>  "UTF-8"
This usually doesn't become a problem; on R codes, most R functions take care of the encoding automatically. But, on C++ codes, the encoding attribute is lost when the
IIUC, Rcpp doesn't have a function to do this, so