Skip to content

Commit 17d7b66

Browse files
authored
Merge pull request #219 from r-spatial/bug_locale
get rid of encoding argument
2 parents a7534ad + e8f3efc commit 17d7b66

File tree

3 files changed

+3
-5
lines changed

3 files changed

+3
-5
lines changed

R/qgis-algorithms.R

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,7 @@ algorithm_is_native <- function(algorithm) {
130130
#' @keywords internal
131131
qgis_query_algorithms <- function(quiet = FALSE) {
132132
if (qgis_using_json_output()) {
133-
result <- qgis_run(args = c("list", "--json"), encoding = "UTF-8")
133+
result <- qgis_run(args = c("list", "--json"))
134134
if (nchar(result$stderr) > 0L) {
135135
message(
136136
"\nStandard error message from 'qgis_process':\n",

R/qgis-help.R

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -109,8 +109,7 @@ qgis_help_json <- function(algorithm, check_deprecation = TRUE) {
109109
arg_skip_loading_plugins(algorithm),
110110
"help",
111111
algorithm
112-
),
113-
encoding = "UTF-8"
112+
)
114113
)
115114

116115
try({

R/qgis-run-algorithm.R

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -137,8 +137,7 @@ qgis_run_algorithm <- function(algorithm, ..., PROJECT_PATH = NULL, ELLIPSOID =
137137
echo_cmd = !.quiet,
138138
stdout_callback = if (!.quiet && !use_json_output) function(x, ...) cat(x),
139139
stderr_callback = function(x, ...) message(x, appendLF = FALSE),
140-
stdin = if (use_json_input) stdin_file,
141-
encoding = if (use_json_output) "UTF-8" else ""
140+
stdin = if (use_json_input) stdin_file
142141
)
143142

144143
if (!.quiet) cat("\n")

0 commit comments

Comments
 (0)