I'm not entirely sure this even qualifies as a bug given how unusual a case it is:
x <- list('a')
name.x <- '\x81'
Encoding(name.x) <- 'bytes'
names(x) <- name.x
x
$`\\x81`[1] "a"> c(x)Error: translating strings with "bytes" encoding is not allowed
unlist(x)
Error in unlist(x) : ??translating strings with "bytes" encoding is not allowed> letters[name.x] [1] NA
letters[[name.x]]
Error: translating strings with "bytes" encoding is not allowed Presumably the error is coming from `translateCharsUTF8` or similar.? I imagine the "fix" would be to not translate byte encoded names, or not allow them. This is not really a problem for me as I can easily work around it.? Just an fyi in case it is of interest to you. Best regards, Brodie. P.S.: SessionInfo(): R version 3.4.0 (2017-04-21) Platform: x86_64-apple-darwin15.6.0 (64-bit) Running under: macOS Sierra 10.12.6 Matrix products: default BLAS: /Library/Frameworks/R.framework/Versions/3.4/Resources/lib/libRblas.0.dylib LAPACK: /Library/Frameworks/R.framework/Versions/3.4/Resources/lib/libRlapack.dylib locale: [1] en_US.UTF-8/en_US.UTF-8/en_US.UTF-8/C/en_US.UTF-8/en_US.UTF-8 attached base packages: [1] stats???? graphics??grDevices utils???? datasets??methods?? base???? other attached packages: [1] diffobj_0.1.6.9002??unitizer_1.4.2.9003 loaded via a namespace (and not attached): [1] vetr_0.1.0.9000 compiler_3.4.0??tools_3.4.0???? withr_1.0.2???? [5] crayon_1.3.2????memoise_1.1.0?? digest_0.6.12?? devtools_1.12.0