From 2c019dc7d578ab19834110eb9f2f01044caa18ff Mon Sep 17 00:00:00 2001 From: jangorecki Date: Mon, 30 Oct 2023 20:29:18 +0100 Subject: [PATCH 1/2] fix warnings on CRAN #5696 --- inst/tests/tests.Rraw | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/inst/tests/tests.Rraw b/inst/tests/tests.Rraw index 9117c0fcb..6205f4596 100644 --- a/inst/tests/tests.Rraw +++ b/inst/tests/tests.Rraw @@ -14473,8 +14473,8 @@ options(datatable.rbindlist.check=NULL) # this option is set to NULL at the top if (.Platform$OS.type == 'windows') local({ lc_collate <- Sys.getlocale(c('LC_COLLATE')) lc_ctype <- Sys.getlocale(c('LC_CTYPE')) - Sys.setlocale('LC_COLLATE', "Chinese (Simplified)_China.936") - Sys.setlocale('LC_CTYPE', "Chinese (Simplified)_China.936") + suppressWarnings(Sys.setlocale('LC_COLLATE', "Chinese (Simplified)_China.936")) + suppressWarnings(Sys.setlocale('LC_CTYPE', "Chinese (Simplified)_China.936")) on.exit({ Sys.setlocale('LC_COLLATE', lc_collate) Sys.setlocale('LC_CTYPE', lc_ctype) From f90f4261434c83b9f862e11ed092f876dfbf1bed Mon Sep 17 00:00:00 2001 From: jangorecki Date: Mon, 6 Nov 2023 11:22:25 +0100 Subject: [PATCH 2/2] add comment explaining suppressWarnings --- inst/tests/tests.Rraw | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/inst/tests/tests.Rraw b/inst/tests/tests.Rraw index 6205f4596..d7ad5a99a 100644 --- a/inst/tests/tests.Rraw +++ b/inst/tests/tests.Rraw @@ -14473,7 +14473,7 @@ options(datatable.rbindlist.check=NULL) # this option is set to NULL at the top if (.Platform$OS.type == 'windows') local({ lc_collate <- Sys.getlocale(c('LC_COLLATE')) lc_ctype <- Sys.getlocale(c('LC_CTYPE')) - suppressWarnings(Sys.setlocale('LC_COLLATE', "Chinese (Simplified)_China.936")) + suppressWarnings(Sys.setlocale('LC_COLLATE', "Chinese (Simplified)_China.936")) ## fix CRAN warning #5696 suppressWarnings(Sys.setlocale('LC_CTYPE', "Chinese (Simplified)_China.936")) on.exit({ Sys.setlocale('LC_COLLATE', lc_collate)