We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5824533 commit 81faa4dCopy full SHA for 81faa4d
tests/testthat/test-encoding.R
@@ -1,11 +1,10 @@
1
context("non-ASCII characters are handled properly")
2
3
test_that("non-ASCII characters are handled properly", {
4
- # c.f. rlang::mut_latin1_locale()
5
- locale <- if (.Platform$OS.type == "windows") "English_United States.1252" else "en_US.ISO8859-1"
+ skip_if(.Platform$OS.type != "windows")
6
7
withr::with_locale(
8
- c(LC_CTYPE = locale),
+ c(LC_CTYPE = "English_United States.1252"),
9
{
10
tmp <- tempfile(fileext = ".R")
11
con <- file(tmp, encoding = "UTF-8")
0 commit comments