Dear all,
packages for processing text may need information on the charset of the R
session. In my packages RcppCWB and polmineR, I extract this information from
the locale using `localeToCharset()`. But when running cross-platform checks
(Github Actions and Docker), I recurringly encounter une
Hi,
When Sys.getlocale("LC_CTYPE") returns 'Chinese (Traditional)_Hong
Kong S.A.R..950' to some Hong Kong Windows users, localeToCharset()
returns NA instead of CP950 due to:
> localeToCharset
if (.Platform$OS.type == "windows") {
x <- strsplit(locale, ".", fixed = TRUE)[[1L]]