[Rd] localeToCharset()

2022-01-31 Thread Blätte , Andreas
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

[Rd] localeToCharset() returns NA for the Hong Kong locale

2013-04-10 Thread Yihui Xie
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]]