From ad2e02fb2c23788edd2265dff8d495a77e7b79d5 Mon Sep 17 00:00:00 2001 From: Indrajeet Patil Date: Tue, 5 Dec 2023 20:51:40 +0100 Subject: [PATCH 1/2] check if test-io still produces warnings --- tests/testthat/test-io.R | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/testthat/test-io.R b/tests/testthat/test-io.R index 6195fd52d..0ad9a9a51 100644 --- a/tests/testthat/test-io.R +++ b/tests/testthat/test-io.R @@ -9,7 +9,7 @@ test_that("non-ASCII characters are handled properly for file styling", { skip_if(.Platform$OS.type != "windows") withr::with_locale( - c(LC_CTYPE = "English_United States.1252"), + c("LC_CTYPE" = "English_United States.932"), { tmp <- tempfile(fileext = ".R") con <- file(tmp, encoding = "UTF-8") From b642772bd96aea1110dfee91593c70dbea991349 Mon Sep 17 00:00:00 2001 From: Indrajeet Patil Date: Tue, 5 Dec 2023 21:00:47 +0100 Subject: [PATCH 2/2] Update test-io.R --- tests/testthat/test-io.R | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/testthat/test-io.R b/tests/testthat/test-io.R index 0ad9a9a51..1e7931d53 100644 --- a/tests/testthat/test-io.R +++ b/tests/testthat/test-io.R @@ -9,7 +9,7 @@ test_that("non-ASCII characters are handled properly for file styling", { skip_if(.Platform$OS.type != "windows") withr::with_locale( - c("LC_CTYPE" = "English_United States.932"), + c("LC_CTYPE" = "English_United States.65001"), { tmp <- tempfile(fileext = ".R") con <- file(tmp, encoding = "UTF-8")