We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 838f19e commit e016ef9Copy full SHA for e016ef9
1 file changed
R/jinit.R
@@ -51,6 +51,10 @@
51
## unfortunately Sys/setlocale()/Sys.getlocale() have incompatible interfaces so there
52
## is no good way to get/set locales -- so we have to hack around it ...
53
locale.list <- c("LC_COLLATE", "LC_CTYPE", "LC_MONETARY", "LC_NUMERIC", "LC_TIME", "LC_MESSAGES", "LC_PAPER", "LC_MEASUREMENT")
54
+ ## RStudio on Windows crashes due to missing error handlers if locales
55
+ ## are queried that Windows does not support so we remove those to work around it
56
+ if (identical(.Platform$OS.type, "windows"))
57
+ locale.list <- locale.list[-(6:8)]
58
locales <- sapply(locale.list, Sys.getlocale)
59
loc.sig <- Sys.getlocale()
60
0 commit comments