search for: 10002l

Displaying 1 result from an estimated 1 matches for "10002l".

Did you mean: 100021
2017 Jan 04
0
cat(s, file): infinite loop of "invalid char string in output conversion" warnings with UTF-8 encoding
The below code snippet gives a single warning: Warning message: In cat(s, file = tempfile()) : invalid char string in output conversion when n <= 10001, whereas with n >= 10002 it appears to be generating the same warning in an infinite loop in the call to cat(). n <- 10002L r <- raw(length = n) r[] <- charToRaw(" ") r[length(r)] <- as.raw(0xa9) s <- rawToChar(r) message("Encoding: native.enc") options(encoding = "native.enc") cat(s, file = tempfile()) message("Encoding: UTF-8") options(encoding = "UTF-8"...