Skip to content

Commit 9b78aee

Browse files
krlmlrlionel-
authored andcommitted
Align with withr::local_language()
1 parent 75c70e0 commit 9b78aee

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

R/local.R

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,7 @@ local_reproducible_output <- function(width = 80,
133133
.local_envir = .env
134134
)
135135

136-
if (isTRUE(capabilities("NLS")) && Sys.getenv("LANG") != "C") {
136+
if (isTRUE(capabilities("NLS")) && !(Sys.getenv("LANG") %in% c("C", "C.UTF-8"))) {
137137
withr::local_language(lang, .local_envir = .env)
138138
}
139139

0 commit comments

Comments
 (0)